I’m upgrading an application from apollo-client v2 to v3. I think I’ve covered everything addressed in the migration guide and changelog. I’m now trying to resolve an issue which I believe is caused by our use of
client.cache.reset(). I’m looking for documentation for this method, for either v2 or v3, but I’m not finding anything. Is this method documented anywhere? Or is it not intended to be used by users of apollo-client?
Specifically, I would like to know is:
a) How is this method different from
b) How has it’s behavior changed from v2 to v3?
Based on running our application, it appears that
client.cache.reset() refetches queries in v3, but it did not in v2. This is causing unexpected behavior.
c) Can I simply replace
Given the above observation about refetched queries, it sounds like
.clearStore() is what we need. But, given that I cannot find documentation for
.reset(), I figured I should ask.