Core: optimize immutable store for "bind"
This commit is contained in:
parent
d41afe7688
commit
03e911196b
1 changed files with 4 additions and 0 deletions
|
@ -352,6 +352,10 @@ export class ImmutableStore<T> extends Store<T> {
|
|||
}
|
||||
return new ImmutableStore<J>(f(this.data))
|
||||
}
|
||||
|
||||
bind<X>(f: (t: T) => Store<X>): Store<X> {
|
||||
return f(this.data)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue