We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
resetApiState
1 parent ab48501 commit 98d7ddaCopy full SHA for 98d7dda
packages/toolkit/src/query/core/buildMiddleware/batchActions.ts
@@ -102,6 +102,11 @@ export const buildBatchedActionsHandler: InternalHandlerBuilder<
102
)
103
}
104
105
+ if (api.util.resetApiState.match(action)) {
106
+ previousSubscriptions = internalState.currentSubscriptions = {}
107
+ return [true, false]
108
+ }
109
+
110
// Intercept requests by hooks to see if they're subscribed
111
// Necessary because we delay updating store state to the end of the tick
112
if (api.internalActions.internal_probeSubscription.match(action)) {
0 commit comments