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 15511e3 commit 001d7a1Copy full SHA for 001d7a1
packages/toolkit/src/query/core/buildMiddleware/invalidationByTags.ts
@@ -108,6 +108,7 @@ export const buildInvalidationByTagsHandler: InternalHandlerBuilder = ({
108
const state = rootState[reducerPath]
109
110
const tags = [...state.pendingTagInvalidations, ...newTags]
111
+ if (tags.length === 0) return
112
113
const toInvalidate = api.util.selectInvalidatedBy(rootState, tags)
114
0 commit comments