octopus-immutable-store
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

octopus-immutable-store

NPM version npm download

Install

octopus-immutable-store

npm install --save octopus-immutable-store

Features

- Customize immuatble redux store
- Durable redux store

Install

  • Install octopus-immutable-store
npm install octopus-immutable-store

How 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

/octopus-immutable-store/

    Package Sidebar

    Install

    npm i octopus-immutable-store

    Weekly Downloads

    0

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    6.37 kB

    Total Files

    8

    Last publish

    Collaborators

    • luonguit