TanStackT
TanStack3y ago
3 replies
sacred-rose

Only throw error if there is no data in the cache

Hi everyone, I'm configuring react-query with throwOnError option set to true but I only want the error to be throw when there's no data in the cache. Is there any way to achieve that with react-query ?
Was this page helpful?