Skip to content

Commit

Permalink
Consolidate options destructuring.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamn committed Apr 20, 2021
1 parent b9970d3 commit 6dd5f81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cache/inmemory/inMemoryCache.ts
Expand Up @@ -307,6 +307,7 @@ export class InMemoryCache extends ApolloCache<NormalizedCacheObject> {
transaction,
optimistic = true,
removeOptimistic,
onWatchUpdated,
} = options;

const perform = (layer?: EntityStore) => {
Expand All @@ -324,7 +325,6 @@ export class InMemoryCache extends ApolloCache<NormalizedCacheObject> {
}
};

const { onWatchUpdated } = options;
const alreadyDirty = new Set<Cache.WatchOptions>();

if (onWatchUpdated && !this.txCount) {
Expand Down

0 comments on commit 6dd5f81

Please sign in to comment.