Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add clearStore method #3885

Merged
merged 5 commits into from
Sep 5, 2018
Merged

Add clearStore method #3885

merged 5 commits into from
Sep 5, 2018

Conversation

hwillson
Copy link
Member

@hwillson hwillson commented Sep 5, 2018

A new clearStore method has been added, that will remove all data from the store. Unlike resetStore, it will not refetch active queries after removing store data.

Fixes #2411.
Fixes #2774.
Fixes #3539.
Fixes #3813.

A new `clearStore` method has been added, that will remove all
data from the store. Unlike `resetStore`, it will not refetch
active queries after removing store data.

Fixes #2411.
Fixes #2774.
Fixes #3539.
Fixes #3813.
@cedvdb
Copy link

cedvdb commented Sep 11, 2018

when will this be available ?

@hwillson
Copy link
Member Author

@cedvdb It's available as of a few hours ago, in apollo-client 2.4.2. Thanks!

@cedvdb
Copy link

cedvdb commented Sep 15, 2018

@hwillson Thanks m8

@AshwinTayson
Copy link

AshwinTayson commented Dec 20, 2018

Calling the clear store method like this doesn't clear the cache

this.$apollo.getClient().clearStore()
Is this still not implemented? Or do we have to call it differently?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants