We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi @BenLorantfy !
When I tried to create a reducer with Immer https://github.com/immerjs/immer.
const reducer = (state = initialState, action) => produce(state, draft => { switch (action.type) { case SIGNUP_REQUEST: draft.isFetching = true; break; } })
I got this error : injectReducer: Expected reducer to be a reducer function
reducer
I think it shouldn't get the error.
Please help, thanks you.
The text was updated successfully, but these errors were encountered:
hmm it should "just work"™ since your reducer is indeed a function. Can you share your redux store setup code?
Sorry, something went wrong.
Thanks for your response, I found the causes, now It's working.
No branches or pull requests
Hi @BenLorantfy !
When I tried to create a reducer with Immer https://github.com/immerjs/immer.
const reducer = (state = initialState, action) => produce(state, draft => { switch (action.type) { case SIGNUP_REQUEST: draft.isFetching = true; break; } })
I got this error :
injectReducer: Expected
reducer
to be a reducer functionI think it shouldn't get the error.
Please help, thanks you.
The text was updated successfully, but these errors were encountered: