Skip to content

Commit 36feac5

Browse files
barnabasJmarkerikson
authored andcommitted
use a better key name
1 parent 525b52a commit 36feac5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/toolkit/src/query/core/buildThunks.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export type PatchCollection = {
187187
*
188188
* If there was no data in the cache no update operation is performed
189189
*/
190-
emptyCache: boolean
190+
cacheEntryFound: boolean
191191
/**
192192
* An `immer` Patch describing the cache update.
193193
*/
@@ -242,7 +242,7 @@ export function buildThunks<
242242
api.endpoints[endpointName] as ApiEndpointQuery<any, any>
243243
).select(args)(getState())
244244
let ret: PatchCollection = {
245-
emptyCache: true,
245+
cacheEntryFound: true,
246246
patches: [],
247247
inversePatches: [],
248248
undo: () =>
@@ -254,7 +254,7 @@ export function buildThunks<
254254
return ret
255255
}
256256
if ('data' in currentState) {
257-
ret.emptyCache = false
257+
ret.cacheEntryFound = false
258258
if (isDraftable(currentState.data)) {
259259
const [, patches, inversePatches] = produceWithPatches(
260260
currentState.data,

0 commit comments

Comments
 (0)