-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Error: builder.addCase
cannot be called with an empty action type
#3750
Comments
Is |
Huh, looking at the code that just surfaces an older bug: This would always have returned |
you seem to be calling addCase with an array? if you pass HYDRATE without the square brackets it should work correctly |
Huh, right, I was on the wrong track. |
@EskiMojo14 Thanks! I did spot that point to dig into further. I was unclear why |
They use the outdated object notation in their docs, and in that you would have to use a variable in a key using the
ends up as |
Hey team!
First off, thanks to all of the contributors for this badass package. It's made my life, personally, much easier.
Release
v1.9.6
includes a breaking change for downstream packages that rely onredux-toolkit
. This line in the v1.9.6 changelog breaks our usage ofnext-redux-wrapper
:I could be wrong, but this feels like a breaking change that shouldn't be included in a minor version update.
store/user-profile/slice.js
store/index.js
This is mostly an FYI for anyone else search for this error "Error:
builder.addCase
cannot be called with an empty action type", since googling returned nothing useful.The text was updated successfully, but these errors were encountered: