1 parent
5c748d7dac
commit
7e57cadd9c
1 file changed
+7
-3
@@ -183,9 +183,13 @@ export const field: {
|
||||
path: P,
|
||||
) {
|
||||
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