T
TanStack3y ago
adverse-sapphire

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"?
2 Replies
other-emerald
other-emerald3y ago
Yeah it should work i think. Can you show a reproduction?
adverse-sapphire
adverse-sapphireOP3y ago
Sure! I'm travelling, I'll arrive on Saturday and I'll make a demo for you. Thank you!

Did you find this page helpful?