File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/toolkit/src/query/core Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ export type PatchCollection = {
187
187
*
188
188
* If there was no data in the cache no update operation is performed
189
189
*/
190
- emptyCache : boolean
190
+ cacheEntryFound : boolean
191
191
/**
192
192
* An `immer` Patch describing the cache update.
193
193
*/
@@ -242,7 +242,7 @@ export function buildThunks<
242
242
api . endpoints [ endpointName ] as ApiEndpointQuery < any , any >
243
243
) . select ( args ) ( getState ( ) )
244
244
let ret : PatchCollection = {
245
- emptyCache : true ,
245
+ cacheEntryFound : true ,
246
246
patches : [ ] ,
247
247
inversePatches : [ ] ,
248
248
undo : ( ) =>
@@ -254,7 +254,7 @@ export function buildThunks<
254
254
return ret
255
255
}
256
256
if ( 'data' in currentState ) {
257
- ret . emptyCache = false
257
+ ret . cacheEntryFound = false
258
258
if ( isDraftable ( currentState . data ) ) {
259
259
const [ , patches , inversePatches ] = produceWithPatches (
260
260
currentState . data ,
You can’t perform that action at this time.
0 commit comments