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

fix(graphcache): default storage not clearing idb batch result #2458

Merged
merged 2 commits into from
May 24, 2022

Conversation

JoviDeCroock
Copy link
Collaborator

Resolves #2443

Summary

In the default-storage when we call clear we should reset the batch else our users aren't able to reset the normalized cache without reading out the previous cached storage.

Set of changes

  • reset batch to an empty object

@JoviDeCroock JoviDeCroock requested a review from kitten May 24, 2022 17:18
@changeset-bot
Copy link

changeset-bot bot commented May 24, 2022

🦋 Changeset detected

Latest commit: eace897

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@urql/exchange-graphcache Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@JoviDeCroock JoviDeCroock merged commit 232310f into main May 24, 2022
@JoviDeCroock JoviDeCroock deleted the fix-idb-storing-after-clear branch May 24, 2022 18:07
@urql-ci urql-ci mentioned this pull request May 24, 2022
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.

Issue Invalidating Storage
2 participants