Skip to content

Commit

Permalink
Use sets directly
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodyowl committed Apr 3, 2024
1 parent 8e4bbff commit 60c1b94
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/cache/cache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ export const getCacheKeyFromOperationNode = (

const mergeCacheEntries = (a: CacheEntry, b: CacheEntry): CacheEntry => {
return {
requestedKeys: new Set([
...a.requestedKeys.values(),
...b.requestedKeys.values(),
]),
requestedKeys: new Set([...a.requestedKeys, ...b.requestedKeys]),
value: deepMerge(a.value, b.value),
};
};
Expand Down

0 comments on commit 60c1b94

Please sign in to comment.