TanStackT
TanStack3y ago
5 replies
verbal-lime

Is it ok to call queryClient.fetchQuery() in a query fn?

I could use select, but let's say I want to reuse a cached value in multiple components in my UX. I think .select would need to run in each component my useQuery appears?
Was this page helpful?