@bfwk/store
TypeScript icon, indicating that this package has built-in type declarations

0.10.11 • Public • Published

Store

npm

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)
    });
  }

Readme

Keywords

none

Package Sidebar

Install

npm i @bfwk/store

Weekly Downloads

3

Version

0.10.11

License

MIT

Unpacked Size

44.5 kB

Total Files

13

Last publish

Collaborators

  • treywashington
  • lwc-admin