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

make -[ApolloStore clearCache] public. #517

Closed
wants to merge 1 commit into from
Closed

make -[ApolloStore clearCache] public. #517

wants to merge 1 commit into from

Conversation

RolandasRazma
Copy link
Contributor

@RolandasRazma RolandasRazma commented Apr 24, 2019

make -[ApolloStore clearCache] public. At the moment there is no way to clear cache unless you have access to ApolloClient. Having clearCache() on ApolloClient is not exactly correct as multiple ApolloClient can share same cache.

Not in this PR (as it is more invasive #518) but IMO make more sense:
ApolloClient.clearCache() should be deprecated and ApolloStore.clearCache() made public.
Old code would need updating from apolloClient.clearCache() to apolloClient.store.clearCache() so developer would realise that he clearing cache of store not the client and store might be shared.

make clearCache() public
@RolandasRazma RolandasRazma deleted the public-clearCache branch May 31, 2019 13:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant