You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On redux toolkit 1.9.2, resetApiState resets the hooks local state.
After upgrading to toolkit to 2.0.1 we found an issue in our app relating to resetApiState call is not resetting the local state of the hook
Hi guys, me too. This is the code to reproduce the bug. If you press on "reset api" button restApiState is called but data still remain populated. isUnitialized is setted to true correctly.
I'm using the latest version, with the previous major version it is working.
@markerikson any update on this issue? currently we wrap each api in a custom hook checking isUninitialized and forcing data undefined if isUninitialized=true...
Luk-z
added a commit
to Luk-z/redux-toolkit
that referenced
this issue
Mar 17, 2025
On redux toolkit 1.9.2, resetApiState resets the hooks local state.
After upgrading to toolkit to 2.0.1 we found an issue in our app relating to resetApiState call is not resetting the local state of the hook
Sandbox using toolkit 1.9.2
Sandbox using toolkit 2.0.1
Reproduction steps:
Result in 1.9.2

Result in 2.0.1 - this is a bug

The text was updated successfully, but these errors were encountered: