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())
React Reference