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 36feac5 commit bac1e03Copy full SHA for bac1e03
packages/toolkit/src/query/core/buildThunks.ts
@@ -242,7 +242,7 @@ export function buildThunks<
242
api.endpoints[endpointName] as ApiEndpointQuery<any, any>
243
).select(args)(getState())
244
let ret: PatchCollection = {
245
- cacheEntryFound: true,
+ cacheEntryFound: false,
246
patches: [],
247
inversePatches: [],
248
undo: () =>
@@ -254,7 +254,7 @@ export function buildThunks<
254
return ret
255
}
256
if ('data' in currentState) {
257
- ret.cacheEntryFound = false
+ ret.cacheEntryFound = true
258
if (isDraftable(currentState.data)) {
259
const [, patches, inversePatches] = produceWithPatches(
260
currentState.data,
0 commit comments