From c9d47c0ecf4149f44a2eeafad25466d4edfe2402 Mon Sep 17 00:00:00 2001 From: law-rence Date: Wed, 17 Aug 2022 09:45:47 +0200 Subject: [PATCH] fix for #8125 --- packages/store/addon/-private/caches/instance-cache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/store/addon/-private/caches/instance-cache.ts b/packages/store/addon/-private/caches/instance-cache.ts index ed62be98229..a2ef35e1cbb 100644 --- a/packages/store/addon/-private/caches/instance-cache.ts +++ b/packages/store/addon/-private/caches/instance-cache.ts @@ -157,7 +157,7 @@ export class InstanceCache { const req = this.store.getRequestStateService(); const fulfilled = req.getLastRequestForRecord(identifier); const isLoading = - fulfilled !== null && req.getPendingRequestsForRecord(identifier).some((req) => req.type === 'query'); + fulfilled === null && req.getPendingRequestsForRecord(identifier).some((req) => req.type === 'query'); if (isEmpty || (filterDeleted && recordData.isDeletionCommitted(identifier)) || isLoading) { return false;