Skip to content
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.

Add utils.resetApiState #189

Merged
merged 5 commits into from
Mar 27, 2021
Merged

Add utils.resetApiState #189

merged 5 commits into from
Mar 27, 2021

Conversation

msutkowski
Copy link
Member

@msutkowski msutkowski commented Mar 27, 2021

Let's a user dispatch(api.internalActions.resetApiState()) at any point. Clears the state, cleans up any timeouts.

@msutkowski msutkowski linked an issue Mar 27, 2021 that may be closed by this pull request
@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 27, 2021

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 7fd6168:

Sandbox Source
React Configuration
React Typescript Configuration
rtk-query-demo Configuration
svelte-app-rtk-simplequery-demo Configuration

@github-actions
Copy link

github-actions bot commented Mar 27, 2021

size-limit report 📦

Path Size
ESM full 9.9 KB (+0.97% 🔺)
ESM full (React) 10.97 KB (+0.83% 🔺)
createApi + setupListeners 9.01 KB (+0.98% 🔺)
createApi (React) + setupListeners 9.98 KB (+0.83% 🔺)
fetchBaseQuery 661 B (0%)
retry 271 B (0%)
ApiProvider 400 B (0%)
CJS minfied 15.36 KB (+1.1% 🔺)
CJS React minfied 16.6 KB (+0.99% 🔺)

@msutkowski msutkowski added this to the 0.3.0 milestone Mar 27, 2021
@msutkowski msutkowski changed the title Add a resetApiState internalAction Add internalActions.resetApiState Mar 27, 2021
@msutkowski msutkowski changed the title Add internalActions.resetApiState Add utils.resetApiState Mar 27, 2021
@phryneas phryneas merged commit 2cd54c6 into next Mar 27, 2021
@msutkowski msutkowski deleted the feature/reset-all-action branch March 27, 2021 16:59
@phryneas phryneas restored the feature/reset-all-action branch May 31, 2021 14:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New action: 'reset all'
2 participants