apollographql / apollo-client

:rocket:  A fully-featured, production ready caching GraphQL client for every UI framework and GraphQL server.
https://apollographql.com/client
MIT License
19.34k stars 2.66k forks source link

Getting A on the result.data #11847

Closed puneetkansal04 closed 3 months ago

puneetkansal04 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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

github-actions[bot] commented 3 months ago

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] commented 2 months ago

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.