From b502ee0ed7e0f103b0b7fcbe81b0a66f6c5c3b4b Mon Sep 17 00:00:00 2001 From: Jovi De Croock Date: Mon, 31 May 2021 16:12:08 +0200 Subject: [PATCH 1/2] add the ENTRIES_STORE_NAME to the clear transaction --- exchanges/graphcache/src/default-storage/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exchanges/graphcache/src/default-storage/index.ts b/exchanges/graphcache/src/default-storage/index.ts index 552478982d..376ad07bcf 100644 --- a/exchanges/graphcache/src/default-storage/index.ts +++ b/exchanges/graphcache/src/default-storage/index.ts @@ -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(); From 3f5f6615c36294e2d1a5c0f982760f7410cb1a06 Mon Sep 17 00:00:00 2001 From: Jovi De Croock Date: Mon, 31 May 2021 16:13:13 +0200 Subject: [PATCH 2/2] Create strange-elephants-add.md --- .changeset/strange-elephants-add.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/strange-elephants-add.md diff --git a/.changeset/strange-elephants-add.md b/.changeset/strange-elephants-add.md new file mode 100644 index 0000000000..3abbd6e836 --- /dev/null +++ b/.changeset/strange-elephants-add.md @@ -0,0 +1,5 @@ +--- +"@urql/exchange-graphcache": patch +--- + +Fix: add the `ENTRIES_STORE_NAME` to the clear transaction