Skip to content

zy-jtp/rtk-next14-error

Repository files navigation

Unhandled Runtime Error | Error: [Immer] 'current' expects a draft, got:

Screenshot 2024-05-16 at 12 52 38 AM

Yarn whys

next@14.0.2
@reduxjs/toolkit@2.2.4
react-redux@9.1.2

Setup

Run

git clone git@github.com:zy-jtp/rtk-next14-error.git
cd rtk-next14-error
yarn
yarn dev

How to repro

  • Open http://localhost:3000 with your browser to see the result.
  • If you land on / click the Go to error demo link or go to http://localhost:3000/error-demo
  • Clicking on any button dispatches an upsert in the modalsSlice and should show the error, also prints it in the console.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors