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 875a5af commit 20d6c78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cache/inmemory/inMemoryCache.ts
Original file line number Diff line number Diff line change
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 20d6c78

Please sign in to comment.