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 b9d1034 commit 8e45462Copy full SHA for 8e45462
packages/toolkit/src/query/core/buildMiddleware/cacheLifecycle.ts
@@ -251,10 +251,10 @@ export const buildCacheLifecycleHandler: InternalHandlerBuilder = ({
251
}
252
253
254
- function getCacheKey(action: any) {
+ function getCacheKey(action: any) {
255
if (isQueryThunk(action)) return action.meta.arg.queryCacheKey
256
if (isMutationThunk(action)) {
257
- return action.meta.arg.fixedCacheKey ?? action.meta.requestId;
+ return action.meta.arg.fixedCacheKey ?? action.meta.requestId
258
259
if (api.internalActions.removeQueryResult.match(action))
260
return action.payload.queryCacheKey
0 commit comments