Skip to content

[RTK Query] Clearing whole API for new user session #1725

@ayushsharma82

Description

@ayushsharma82

Hi,

I'm using RTK Query in my React Native app and I would like to know if there is any way we can clear the whole API for new user session? What I'm trying to achieve is to reset all query hooks and mark them uninitialized.

Please let me know if someone has found a way to do this. I'll mark this as a feature request for RTK query ( Feature: a reset function ).

Thanks for the amazing library.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions