-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
listenerMiddleware/error Error: [Immer] 'current' expects a draft, got: #4411
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
It looks like there is another place that is missing the In my case, this happens on a sorted state and only occurs after a seconds add mutation. PR description:
This is the relavant line:
|
sigh Thanks. Busy atm, but could you throw up a PR to fix that one as well? |
Here is a PR to fix this issue. |
Fix released in v2.2.6 😄 |
Unhandled Runtime Error | Error: [Immer] 'current' expects a draft, got:
Example Repo
https://github.com/zy-jtp/rtk-next14-error
Context
pages
, notapp
router.The call triggering the error is a dispatch call to modals slice from an
onClick
callbackits initial state comes from an
entityAdapter
Runtime Error
The text was updated successfully, but these errors were encountered: