1.1.5 • Published 3 years ago
nice-store v1.1.5
nice-store
homepage
https://frontlich.github.io/nice-store/#/
usage
install
npm install nice-store
createCoreStore
import { createCoreStore } from "nice-store";
const store = createCoreStore(0);
store.subscribe(console.log);
store.setState(1); // will log 1
store.getState(); // 1
createStore
import { createStore } from "nice-store";
create enhanced store with initialState and enhancers
createStore(initialState, ...enhancers);
internal enhancers:
- async(asyncFn, 'takeLatest' | 'takeEvery')
- asyncLoading()
- connect(...otherStores)
- reducer(reducerFn)
- reset()
- selectorHook()
- task(taskFn)
- thunk(thunkFn)
other enhancers:
1.1.1
3 years ago
1.0.2
3 years ago
1.1.0
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago
1.1.5
3 years ago
1.1.4
3 years ago
1.1.3
3 years ago
1.1.2
3 years ago
0.0.2-10
3 years ago
0.0.2-9
3 years ago
0.0.2-8
3 years ago
0.0.2-7
3 years ago
0.0.2-6
3 years ago
0.0.2-5
3 years ago
0.0.2-4
3 years ago
0.0.2-3
3 years ago
0.0.2-2
3 years ago
0.0.2-1
3 years ago
0.0.2
3 years ago
0.0.1
3 years ago