@bfwk/store
v0.10.11
Published
LBF Store
Downloads
264
Readme
Store
Defines the interface for the Builder Framework store (based on redux 4.0.0) and provides the ScopedStore wrapper. In ScopedStore, state is dynamically composed of Slices.
No actual store implementation is included in this package. Projects using the Builder Framework will need to use a concrete store implementation when creating the ScopedStore and parts. By default, Builder Framework uses store-redux
Examples
import { createStore } from '@bfwk/store-redux';
this.primaryStore = createScopedStore(createStore);
protected createCanvas(): Canvas {
return createCanvas(this.pubsub, this.errorHandler, {
store: createScopedStore(createStore)
});
}