Skip to content

resetApiState is not resetting the local state of the hook #4009

@saibs

Description

@saibs

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:

  • Click on login button
  • In the next screen you should see
image - Click logout

Result in 1.9.2
image

Result in 2.0.1 - this is a bug
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions