react query persistQueryClient: store each queryKey/queryHash in its own IDB k-v row

I'm currently using react query to persist some queries to indexedDB (a lot of queries, so i can't use localStorage because it's limited to 5mb) I noticed that RQ stores all of the queries in one single k-v. it it possible to set the persister to store each queryKey/Hash on its own k-v row? Having them all inside one row makes it a bit harder to debug since now during dev, i periodically check if my cache is actually correct or not. -- I'm also curious if this is the right approach to persist some of my queries, maybe ya'll might have other suggestions. Reference: https://tanstack.com/query/v4/docs/react/plugins/persistQueryClient#building-a-persister
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server