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

ObservableQuery setVariables/reobserve with new variables reports partial data unexpectedly #11593

Open
jerelmiller opened this issue Feb 13, 2024 · 0 comments
Labels

Comments

@jerelmiller
Copy link
Member

jerelmiller commented Feb 13, 2024

Issue Description

When using the core client.watchQuery() method which returns an ObservableQuery, changing variables to a result that has partial data will report that partial data even when returnPartialData is set to false.

This does not affect useQuery however because useQuery uses getCurrentResult() under the hood whenever a cache update occurs, which does not demonstrate this behavior.

We'd like our React hooks and core APIs to have the same behavior so that non-React users (and other frameworks) don't need to handle these differences.

Link to Reproduction

#11581

Reproduction Steps

No response

@apollo/client version

3.9.4

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

1 participant