Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

(graphcache) - add the ENTRIES_STORE_NAME to the clear transaction (#1685)

authored by

Jovi De Croock and committed by
GitHub
f5e0b88c 276762c0

+6 -1
+5
.changeset/strange-elephants-add.md
··· 1 + --- 2 + "@urql/exchange-graphcache": patch 3 + --- 4 + 5 + Fix: add the `ENTRIES_STORE_NAME` to the clear transaction
+1 -1
exchanges/graphcache/src/default-storage/index.ts
··· 98 98 clear() { 99 99 return database$.then(database => { 100 100 const transaction = database.transaction( 101 - METADATA_STORE_NAME, 101 + [METADATA_STORE_NAME, ENTRIES_STORE_NAME], 102 102 'readwrite' 103 103 ); 104 104 transaction.objectStore(METADATA_STORE_NAME).clear();