From 20d6c782066b7d0f74c79b7fedec0641fb9465dd Mon Sep 17 00:00:00 2001 From: Ben Newman Date: Tue, 20 Apr 2021 10:39:23 -0400 Subject: [PATCH] Consolidate options destructuring. https://github.com/apollographql/apollo-client/pull/8000/files/dfe4f290b2ab64c4119981950f6f1195e5b492b3#r616270942 --- src/cache/inmemory/inMemoryCache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cache/inmemory/inMemoryCache.ts b/src/cache/inmemory/inMemoryCache.ts index b5fee375c4b..9423fa8abc4 100644 --- a/src/cache/inmemory/inMemoryCache.ts +++ b/src/cache/inmemory/inMemoryCache.ts @@ -307,6 +307,7 @@ export class InMemoryCache extends ApolloCache { transaction, optimistic = true, removeOptimistic, + onWatchUpdated, } = options; const perform = (layer?: EntityStore) => { @@ -324,7 +325,6 @@ export class InMemoryCache extends ApolloCache { } }; - const { onWatchUpdated } = options; const alreadyDirty = new Set(); if (onWatchUpdated && !this.txCount) {