Skip to content

Commit

Permalink
(graphcache) - add the ENTRIES_STORE_NAME to the clear transaction (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
JoviDeCroock authored May 31, 2021
1 parent 276762c commit f5e0b88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/strange-elephants-add.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@urql/exchange-graphcache": patch
---

Fix: add the `ENTRIES_STORE_NAME` to the clear transaction
2 changes: 1 addition & 1 deletion exchanges/graphcache/src/default-storage/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const makeDefaultStorage = (opts?: StorageOptions): DefaultStorage => {
clear() {
return database$.then(database => {
const transaction = database.transaction(
METADATA_STORE_NAME,
[METADATA_STORE_NAME, ENTRIES_STORE_NAME],
'readwrite'
);
transaction.objectStore(METADATA_STORE_NAME).clear();
Expand Down

0 comments on commit f5e0b88

Please sign in to comment.