question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bad "Perhaps you want to use the 'returnPartialData' option?" error.

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
NeoPhicommented, Oct 25, 2016

@helfer It does seem to be fixed in 0.5.0-preview.3.

0reactions
helfercommented, Oct 25, 2016

@NeoPhi can you confirm that this is fixed in 0.5.0-preview.3?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found