redux store with injectable reducers and middleware for module seperation
import store from '@indlekofer/redux-store';
//dispatch actions
store.dispatch({type: "test"});
//dispatch thunk - thunk middleware is always there
store.dispatch(() => (dispatch, getState) => dispatch({type: "test"}));
reducer: function
namespace: string
force: boolean (optional default false) replace existing namspaces
remove a specific reducer by namespace
namespace: string
remove all reducers
middleware: function
namespace: string
force: boolean (optional default false) replace existing namspaces
namespace: string