1.0.1 • Published 5 years ago
octopus-immutable-store v1.0.1
octopus-immutable-store
Install
npm install --save octopus-immutable-storeFeatures
- Customize immuatble redux store
- Durable redux storeInstall
- Install octopus-immutable-store
npm install octopus-immutable-storeHow it work
Override process env
- Init redux store instance:
import { initRootStore } from "octopus-immutable-store";
initRootStore(store);- Get current state:
import { getRootState } from "octopus-immutable-store";
getRootState();- Dispatch a action as root:
import { rootDispatch } from "octopus-immutable-store";
rootDispatch(type, payload);- Dispatch a debounce action as root:
import { debounceRootDispatch } from "octopus-immutable-store";
debounceRootDispatch(type, payload, wait = 2000);LICENSE
MIT
1.0.1
5 years ago
