1.1.5 • Published 2 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
2 years ago
1.0.2
2 years ago
1.1.0
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
0.0.2-10
2 years ago
0.0.2-9
2 years ago
0.0.2-8
2 years ago
0.0.2-7
2 years ago
0.0.2-6
2 years ago
0.0.2-5
2 years ago
0.0.2-4
2 years ago
0.0.2-3
2 years ago
0.0.2-2
2 years ago
0.0.2-1
2 years ago
0.0.2
2 years ago
0.0.1
2 years ago