Skip to content

Commit

Permalink
fix for emberjs#8125
Browse files Browse the repository at this point in the history
  • Loading branch information
law-rence authored Aug 17, 2022
1 parent ddc9009 commit c9d47c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/store/addon/-private/caches/instance-cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c9d47c0

Please sign in to comment.