next-redux-wrapper icon indicating copy to clipboard operation
next-redux-wrapper copied to clipboard

Breaking change from `[email protected]`: Error: `builder.addCase` cannot be called with an empty action type

Open foobarnes opened this issue 1 year ago • 0 comments

Describe the bug

[email protected] is incompatible with @reduxjs/[email protected] 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 [email protected].
  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 avatar Sep 26 '23 19:09 foobarnes