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.
1 parent 1a28687 commit d2e200aCopy full SHA for d2e200a
packages/toolkit/src/query/core/buildMiddleware/index.ts
@@ -91,8 +91,12 @@ export function buildMiddleware<
91
// This looks for actions that aren't specific to the API slice
92
windowEventsHandler(action, mwApi, stateBefore)
93
94
- if (isThisApiSliceAction(action)) {
95
- // Only run these additional checks if the actions are part of the API slice
+ if (
+ isThisApiSliceAction(action) ||
96
+ context.hasRehydrationInfo(action)
97
+ ) {
98
+ // Only run these additional checks if the actions are part of the API slice,
99
+ // or the action has hydration-related data
100
for (let handler of handlers) {
101
handler(action, mwApi, stateBefore)
102
}
0 commit comments