Form work
Some checks failed
Lint / lint (push) Failing after 39s

This commit is contained in:
Julien Valverdé
2025-09-27 02:35:15 +02:00
parent 5c748d7dac
commit 7e57cadd9c

View File

@@ -183,9 +183,13 @@ export const field: {
path: P, path: P,
) { ) {
return new FormFieldImpl( return new FormFieldImpl(
SubscribableInternal.make({ pipe(
(value: Option.Option<A>) => Option.map(value, v => PropertyPath.get(v, path)),
}) filter => SubscribableInternal.make({
get: Effect.flatMap(self.valueRef, filter),
get changes() { return Stream.flatMap(self.valueRef.changes, filter) },
}),
)
) )
}) })