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 listeners for clearStore() #53

Closed
SnidelyWhiplash opened this issue Sep 19, 2018 · 2 comments
Closed

Add listeners for clearStore() #53

SnidelyWhiplash opened this issue Sep 19, 2018 · 2 comments
Labels
help-wanted Pull requests encouraged! project-apollo-client (legacy) LEGACY TAG DO NOT USE

Comments

@SnidelyWhiplash
Copy link

Happy to see the new clearStore() method. I think one way to improve this is to be able to add listeners (via client.onClearStore) like we can with resetStore().

My use-case is being able to clear apollo-cache-persist when I call clearStore() from my logout flow.

@hwillson hwillson added help-wanted Pull requests encouraged! project-apollo-client (legacy) LEGACY TAG DO NOT USE labels Sep 19, 2018
@hwillson
Copy link
Member

@SnidelyWhiplash Sure thing - we'd love to see that. Pull requests encouraged if you're interested! 🙂

@hwillson
Copy link
Member

hwillson commented Jan 2, 2019

Addressed in apollographql/apollo-client#4082.

@hwillson hwillson closed this as completed Jan 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help-wanted Pull requests encouraged! project-apollo-client (legacy) LEGACY TAG DO NOT USE
Projects
None yet
Development

No branches or pull requests

2 participants