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•3y ago
Yeah it should work i think. Can you show a reproduction?
adverse-sapphireOP•3y ago
Sure! I'm travelling, I'll arrive on Saturday and I'll make a demo for you. Thank you!