Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting A on the result.data #11847

Open
puneetkansal04 opened this issue May 16, 2024 · 2 comments
Open

Getting A on the result.data #11847

puneetkansal04 opened this issue May 16, 2024 · 2 comments
Labels

Comments

@puneetkansal04
Copy link

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

@alessbell
Copy link
Member

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?

@jerelmiller
Copy link
Member

Possibly related #11846

@jerelmiller jerelmiller added the 🏓 awaiting-contributor-response requires input from a contributor label May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants