apollo-client icon indicating copy to clipboard operation
apollo-client copied to clipboard

Getting A on the result.data

Open puneetkansal04 opened this issue 1 year ago • 1 comments

Issue Description

var data = result.data; result.partial; var resultWithoutPartial = tslib.__rest(result, ["data", "partial"]); this.toQueryResultCache.set(result, (queryResult = tslib.__assign(tslib.__assign(tslib.__assign({ data: data }, resultWithoutPartial), this.obsQueryFields), { client: this.client, obser

vable: this.observable, variables: this.observable.variables, called: !this.queryHookOptions.skip, previousData: this.previousData })));

Screenshot 2024-05-16 at 11 10 20 AM

Link to Reproduction

@apollo/client

Reproduction Steps

Getting this issue if I fired an api with the expired token and it throws a error of unauthorised.

@apollo/client version

3.10.4

puneetkansal04 avatar May 16 '24 05:05 puneetkansal04

Hi @puneetkansal04 👋 Can you please share the original code snippet with your query and the error policy you're using, and also the shape of the response when it throws an unauthorized error?

alessbell avatar May 17 '24 14:05 alessbell

Possibly related https://github.com/apollographql/apollo-client/issues/11846

jerelmiller avatar May 29 '24 02:05 jerelmiller

We're closing this issue now but feel free to ping the maintainers or open a new issue if you still need support. Thank you!

github-actions[bot] avatar Jun 28 '24 05:06 github-actions[bot]

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. For general questions, we recommend using StackOverflow or our discord server.

github-actions[bot] avatar Jul 29 '24 00:07 github-actions[bot]