From 94faea9812fb1536102b8087a9941e44d85b4844 Mon Sep 17 00:00:00 2001 From: Emmanuel S Date: Tue, 8 Nov 2022 08:10:27 -0800 Subject: [PATCH] Revert cloneDeep-ing request headers (#10215) * Support cloning Symbols in cloneDeep * Revert "Support cloning Symbols in cloneDeep" This reverts commit 2d5f4b185de1e46f0483e306eecb6f3443d26839. * Revert "Ensure getResultsFromLink writes results using original options." This reverts commit b4ffcb60d7302d6297e084c0d99536c890475df1 --- src/core/QueryManager.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/core/QueryManager.ts b/src/core/QueryManager.ts index b3b511206a9..36fac27ef13 100644 --- a/src/core/QueryManager.ts +++ b/src/core/QueryManager.ts @@ -26,7 +26,6 @@ import { makeUniqueId, isDocumentNode, isNonNullObject, - cloneDeep, } from '../utilities'; import { ApolloError, isApolloError } from '../errors'; import { @@ -1038,10 +1037,6 @@ export class QueryManager { ): Observable> { const requestId = queryInfo.lastRequestId = this.generateRequestId(); - // Make sure we write the result below using the same options we were given, - // even though the input object may have been modified in the meantime. - options = cloneDeep(options); - // Performing transformForLink here gives this.cache a chance to fill in // missing fragment definitions (for example) before sending this document // through the link chain.