Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

cache-only query stuck in loading state after client.resetStore() #2978

Closed
gbiryukov opened this issue Apr 21, 2019 · 2 comments
Closed

cache-only query stuck in loading state after client.resetStore() #2978

gbiryukov opened this issue Apr 21, 2019 · 2 comments

Comments

@gbiryukov
Copy link

Intended outcome:

Query should pass loading: false and actual state from cache after client.resetStore() call for cache-only queries

Actual outcome:

Query stuck in loading state forever.
notifyOnNetworkStatusChange={true} hack does not solve issue.

How to reproduce the issue:

Repro for network data: https://codesandbox.io/s/48kj969v07
Repro for local state: https://codesandbox.io/s/n739m44k50

might be related: #807

Version

@ElForastero
Copy link

It can be related to #2899

@hwillson
Copy link
Member

hwillson commented Sep 6, 2019

React Apollo has been refactored to use React Hooks behind the scenes for everything, which means a lot has changed since this issue was opened (and a lot of outstanding issues have been resolved). We'll close this issue off, but please let us know if you're still encountering this problem using React Apollo >= 3.1.0. Thanks!

@hwillson hwillson closed this as completed Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants