TanStackT
TanStack3y ago
5 replies
faint-white

Don't refetch if there is data in the query cache

My goal is simply to not refetch a query if there exists data in the queryCache.

I am using a PersistQueryClientProvider which is successfully using the persisted query client from local storage when start the app. However, if there is data in the local storage related to that query I want to disable refetching on mount and in general.
Was this page helpful?