@@ -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) },
|
||||||
|
}),
|
||||||
|
)
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user