0.1.4 #5
@@ -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