Core: optimize immutable store for "bind"

This commit is contained in:
Pieter Vander Vennet 2024-08-09 10:53:37 +02:00
parent d41afe7688
commit 03e911196b

View file

@ -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)
}
}
/**