TanStackT
TanStack3y ago
5 replies
skinny-azure

How to persist data to IndexedDB ?

Hi, I was using this utility function to persist data to IndexedDB
https://github.com/TanStack/query/discussions/1638

But after updating Angular Query from 5.16.1 to 5.17.9, this no longer works, With the latest version the cached data never appears but there is no loading either, when trying to refresh I see a glimpse of the data that should have been there before the refresh completes

The data shows properly in the devtools however, so it means the
data
signals are not emitting new data.
GitHub
React query have experiemental cache persistence using local storage. However in our application we have large data cached and local storage has max storage limit of 5mb. In order to store large am...
Cache Persistence in IndexedDB · TanStack query · Discussion #1638
Was this page helpful?