1.0.1 • Published 3 years ago
aka-immutable-store v1.0.1
aka-immutable-store
Install
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