redux-hooks-context
redux-hooks-context copied to clipboard
Expected behavior
Thanks for this implementation ! But we have an issue regarding the expected behavior
const loggerMiddleware = store => next => action => {
console.log('prev state', action.type, store.getState());
next(action);
console.log('next state', action.type, store.getState());
}
prev state and next state are equals after the dispatch any idea why ?