Skip to content

Commit ee04b54

Browse files
committed
Maintain identity on null result
1 parent 2da93d0 commit ee04b54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cache/core/cache.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ export abstract class ApolloCache {
664664
}
665665

666666
if (id === null) {
667-
return toWatchFragmentResult({ result: null, complete: true });
667+
return nullResult;
668668
}
669669

670670
const diff = this.diff<TData>({

0 commit comments

Comments
 (0)