Bad "Perhaps you want to use the 'returnPartialData' option?" error.
See original GitHub issueI’ve been seeing Perhaps you want to use the 'returnPartialData' option?
errors since upgrading to 0.4.21. This seems to happen when props change while the previous a query is in flight.
The issue seems to be that the previous query is still in flight but the variables change so the QueryManager thinks data should already been in the store and it bails trying to find that data. https://github.com/apollostack/apollo-client/blob/master/src/core/QueryManager.ts#L341
queryStoreValue.previousVariables
is populated so it tries to read the resultFromStore
but that data doesn’t exist in the store since the original query is still in flight.
I don’t have a minimal test case repo for this.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:13 (8 by maintainers)
Top Results From Across the Web
Handling Errors with Apollo Client (React) - YouTube
In this video I talk about handling errors when running queries and mutations using Apollo Client in a React project.Table of contents:00:00 ...
Read more >Handling operation errors - Apollo GraphQL Docs
Apollo Client helps you handle these errors according to their type, enabling you to show appropriate information to the user when an error...
Read more >Handling GraphQL Errors with Hasura & React
A guide to common GraphQL API & Hasura specific errors and how to handle them with React pages.
Read more >Refactor Apollo cache updates to be immutable in Design ...
In Apollo Client 2.6, if we're confident that the application code does not modify cache result objects, we can unlock substantial performance ...
Read more >apollo-client/bundle.esm.js.map - UNPKG
If you're not sure which you need, then you probably need getCurrentResult. ... {\n return Promise.resolve();\n }\n\n // Use the same options as...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@helfer It does seem to be fixed in
0.5.0-preview.3
.@NeoPhi can you confirm that this is fixed in 0.5.0-preview.3?