Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodyowl committed Apr 6, 2024
1 parent 2df9636 commit 4f63e07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cache/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ export class ClientCache {
[edgesSymbol]: [
...Array.filterMap(edges, ({ node, __typename }) =>
getCacheKeyFromJson(node).flatMap((key) =>
// we can omit the requested fields here because the Connection<A> contrains the fields
this.getFromCacheWithoutKey(key).map(() => ({
[typenameSymbol]: __typename,
[nodeSymbol]: key,
Expand All @@ -313,6 +314,7 @@ export class ClientCache {
...value[edgesSymbol],
...Array.filterMap(edges, ({ node, __typename }) =>
getCacheKeyFromJson(node).flatMap((key) =>
// we can omit the requested fields here because the Connection<A> contrains the fields
this.getFromCacheWithoutKey(key).map(() => ({
[typenameSymbol]: __typename,
[nodeSymbol]: key,
Expand Down

0 comments on commit 4f63e07

Please sign in to comment.