Skip to content

Partial results with graphcache #1537

Answered by kitten
jacob-indieocean asked this question in Q&A
Discussion options

You must be logged in to vote

It is possible to prevent graphcache from doing this (while still providing the schema) and always wait for complete results?

It's not, because the UI / bindings can see all future results too, so if you're interested in the full result you can check for stale: true or the data you need to make sure that the partial results match your requirements. At least for the React and Preact bindings, we plan on making a useFragment hook that automatically attempts to match partial results against fragments to ensure that parts of your app can easily specify their minimal requirements #1408

Is it possible to detect when the results are partial?

The stale: true flag is set whenever you can expec…

Replies: 1 comment 11 replies

Comment options

You must be logged in to vote
11 replies
@jacob-indieocean
Comment options

@RIP21
Comment options

@jacob-indieocean
Comment options

@kitten
Comment options

@jacob-indieocean
Comment options

Answer selected by jacob-indieocean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants