redux-zero
Advanced tools
Changelog
5.0.0
BREAKING CHANGES
bindActions()
, connect()
, createStore()
, Provider
, Store
. - Default: anynote: If using createStore() with partial initial state, it will inferred to incorrect type.
import createStore from "redux-zero";
interface ReduxState {
a: number;
b: number;
}
const store = createStore({ a: 3 }); // Store<{a: 3}>
const store = createStore<ReduxState>({ a: 3 }); // Store<Partial<ReduxState>>
const store = createStore<ReduxState>({ a: 3, b: 3 }); // Store<ReduxState>
Changelog
4.15.2
reset
function on the store, now it makes reset to initialState
devtoolsMiddleware
importsChangelog
4.13.3
connect
high order component now propagate connected component statics