TanStackT
TanStack3y ago
2 replies
sad-indigo

prefetchQuery does not inherit the defaultOptions defined in the queryClient

My "defaultOptions.queries" has "staleTime" as "Infinity", but my "prefetchQuery" goes into "stale" mode after a while.

Is the intent of "prefetchQuery" not to inherit the options from "defaultOptions"?
Was this page helpful?