kirill-konshin/next-redux-wrapper

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

foobarnes opened this issue · 0 comments

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