Skip to content

Commit

Permalink
Revert cloneDeep-ing request headers (#10215)
Browse files Browse the repository at this point in the history
* Support cloning Symbols in cloneDeep

* Revert "Support cloning Symbols in cloneDeep"

This reverts commit 2d5f4b1.

* Revert "Ensure getResultsFromLink writes results using original options."

This reverts commit b4ffcb6
  • Loading branch information
MrDoomBringer committed Nov 8, 2022
1 parent 408918a commit 94faea9
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/core/QueryManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ import {
makeUniqueId,
isDocumentNode,
isNonNullObject,
cloneDeep,
} from '../utilities';
import { ApolloError, isApolloError } from '../errors';
import {
Expand Down Expand Up @@ -1038,10 +1037,6 @@ export class QueryManager<TStore> {
): Observable<ApolloQueryResult<TData>> {
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.
Expand Down

0 comments on commit 94faea9

Please sign in to comment.