Skip to content

Commit cc9d416

Browse files
authoredApr 17, 2023
Merge pull request #3333 from reduxjs/pr/fix-3119
2 parents 8232827 + 98d7dda commit cc9d416

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎packages/toolkit/src/query/core/buildMiddleware/batchActions.ts

+5
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,11 @@ export const buildBatchedActionsHandler: InternalHandlerBuilder<
102102
)
103103
}
104104

105+
if (api.util.resetApiState.match(action)) {
106+
previousSubscriptions = internalState.currentSubscriptions = {}
107+
return [true, false]
108+
}
109+
105110
// Intercept requests by hooks to see if they're subscribed
106111
// Necessary because we delay updating store state to the end of the tick
107112
if (api.internalActions.internal_probeSubscription.match(action)) {

0 commit comments

Comments
 (0)
Please sign in to comment.