Replies: 3 comments 2 replies
-
I'll look into this. We may need to add a new method |
Beta Was this translation helpful? Give feedback.
2 replies
-
@tannerlinsley Is there any workaround for this issue? |
Beta Was this translation helpful? Give feedback.
0 replies
-
This is also being discussed here and a PR is in the works: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Apollo has two methods named:
apolloClient.clearStore
&&apolloClient.resetStore
.I want to achieve something similar. Take the following example.
On logout I want to clear the cache and refetch all queries immediately without my ui getting stale.
Currently
queryCache.clear()
refetches all queries but doesn't remove the stale data from the UI. Instead it waits for the refetched queries to resolve.Is there a way to reset all queries back to a loading state without having stale data?
Beta Was this translation helpful? Give feedback.
All reactions