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

Breaking change from redux-toolkit@1.9.6: Error: builder.addCase cannot be called with an empty action type #558

Open
foobarnes opened this issue Sep 26, 2023 · 0 comments
Labels

Comments

@foobarnes
Copy link

foobarnes commented Sep 26, 2023

Describe the bug

next-redux-wrapper@8.1.0 is incompatible with @reduxjs/redux-toolkit@1.9.6 due to this breaking change in redux-toolkit:

The builder.addCase method now throws an error if a type string is empty.

Following the instructions provided in next-redux-wrapper, configureStore will throw the following error as of v1.9.6:
Error: 'builder.addCase' cannot be called with an empty action type.

This is more of a notice to the package maintainers as opposed to a request for change, since the bug was initiated in redux-toolkit. I already filed an issue with them here.

To Reproduce

  1. Follow these instructions to set up next-redux-wrapper with redux-toolkit@1.9.6.
  2. profit

Expected behavior

The action supplied to builder.addCase should have a type.

Desktop (please complete the following information):

  • OS: Linux
  • Browser: Cypress chromedriver
  • Version: N/A
@foobarnes foobarnes added the bug label Sep 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant