1.0.1 • Published 3 years ago

aka-immutable-store v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

aka-immutable-store

NPM version npm download

Install

aka-immutable-store

npm install --save aka-immutable-store

Features

- Customize immuatble redux store
- Durable redux store

Install

  • Install aka-immutable-store
npm install aka-immutable-store

How it work

Override process env

  • Init redux store instance:
import { initRootStore } from "aka-immutable-store";

initRootStore(store);
  • Get current state:
import { getRootState } from "aka-immutable-store";

getRootState();
  • Dispatch a action as root:
import { rootDispatch } from "aka-immutable-store";

rootDispatch(type, payload);
  • Dispatch a debounce action as root:
import { debounceRootDispatch } from "aka-immutable-store";

debounceRootDispatch(type, payload, wait = 2000);

LICENSE

MIT

1.0.1

3 years ago

1.0.0

3 years ago