# @bfwk/store

> LBF Store

Latest version **0.10.11** (published 2022-09-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @bfwk/store
pnpm add @bfwk/store
yarn add @bfwk/store
bun add @bfwk/store
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.10.11 |
| Published | 2022-09-22 |
| First published | 2021-04-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 43.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | treywashington, lwc-admin |

## Links

- npm: https://www.npmjs.com/package/@bfwk/store
- Repository: https://github.com/salesforce/builder-framework
- Homepage: https://github.com/salesforce/builder-framework#readme
- Issues: https://github.com/salesforce/builder-framework/issues
- npm.io page: https://npm.io/package/@bfwk/store

## Dependencies (2)

- [@bfwk/utils](https://npm.io/package/@bfwk/utils.md) 0.10.11
- [@bfwk/command](https://npm.io/package/@bfwk/command.md) 0.10.11

## Recent versions

- 0.10.11 (latest) — 2022-09-22
- 0.6.11-alpha.1259 (canary) — 2021-04-27
- 0.10.10 — 2022-09-19
- 0.10.9 — 2022-09-16
- 0.10.8 — 2022-09-15
- 0.10.7 — 2022-09-12
- 0.10.6 — 2022-08-26
- 0.10.5 — 2022-08-18
- 0.10.4 — 2022-08-17
- 0.10.3 — 2022-08-17
- 0.10.2 — 2022-08-11
- 0.10.1 — 2022-08-09
- 0.10.0 — 2022-08-08
- 0.9.15 — 2022-07-22
- 0.9.14 — 2022-07-21
- … 107 more at https://npm.io/package/@bfwk/store/versions

## README

# Store

[![npm](https://img.shields.io/npm/v/@bfwk/store)](https://www.npmjs.com/package/@bfwk/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](/packages/@bfwk/store-redux/README.md)

###### Examples

```
  import { createStore } from '@bfwk/store-redux';

  this.primaryStore = createScopedStore(createStore);

  protected createCanvas(): Canvas {
    return createCanvas(this.pubsub, this.errorHandler, {
      store: createScopedStore(createStore)
    });
  }
```

---
_Source: https://npm.io/package/@bfwk/store · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
