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) {