Redux Toolkit / RTK Query
resetApiState
Creates an action that clears the API slice state.
Formal Syntax & Structure
react syntaxreact
dispatch(api.util.resetApiState())Working Example
Example Snippetreact
dispatch(api.util.resetApiState())Creates an action that clears the API slice state.
dispatch(api.util.resetApiState())dispatch(api.util.resetApiState())