Skip to content

Commit

Permalink
Merge pull request #3333 from reduxjs/pr/fix-3119
Browse files Browse the repository at this point in the history
  • Loading branch information
markerikson authored Apr 17, 2023
2 parents 8232827 + 98d7dda commit cc9d416
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,11 @@ export const buildBatchedActionsHandler: InternalHandlerBuilder<
)
}

if (api.util.resetApiState.match(action)) {
previousSubscriptions = internalState.currentSubscriptions = {}
return [true, false]
}

// Intercept requests by hooks to see if they're subscribed
// Necessary because we delay updating store state to the end of the tick
if (api.internalActions.internal_probeSubscription.match(action)) {
Expand Down

0 comments on commit cc9d416

Please sign in to comment.