You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my application, I use React query and IndexDB persister. When creating the PersistQueryClientProvider with persistOptions the persister provided already has a key for react query to use for caching,
However, after extensive use and caching big data sets, I have experienced a big impact on loading and overall performance when a react query loads the initial data from the cache.
I am aware that I can use multiple PersistQueryClientProvider, but I access the cache from several areas in the application, which creates another layer of maintenance that I want to avoid.
Is there a way to use the query key as the indexDB key, so every use will have its own key, not one for the whole client?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
In my application, I use React query and IndexDB persister. When creating the
PersistQueryClientProvider
withpersistOptions
the persister provided already has a key for react query to use for caching,However, after extensive use and caching big data sets, I have experienced a big impact on loading and overall performance when a react query loads the initial data from the cache.
I am aware that I can use multiple
PersistQueryClientProvider
, but I access the cache from several areas in the application, which creates another layer of maintenance that I want to avoid.Is there a way to use the query key as the indexDB key, so every use will have its own key, not one for the whole client?
For example:
will result in two distinct entries in indexDB
Beta Was this translation helpful? Give feedback.
All reactions