Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch #14

Open
nk2580 opened this issue Apr 27, 2018 · 3 comments

Comments

@nk2580
Copy link

nk2580 commented Apr 27, 2018

looks like the pattern of this library violates the Middleware spec for Redux now when you have state stored locally.

perhaps there needs to be a solution the the on load method implemented in a thunk? or something of that sort?

@marvin-w
Copy link

marvin-w commented Aug 22, 2018

Did anyone find a solution for this? I'm experiencing the same issue

@davidfells
Copy link

Same issue. This has been here a while - is this project even maintained anymore?

@marvin-w
Copy link

marvin-w commented Aug 22, 2018

I removed this dependency from my project and used an alternative approach for the localStorage.

const savedState = loadState();
export const store = createStore(rootReducer, savedState, composeWithDevTools());
store.subscribe(() => { saveState(store.getState());
` });

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants