-
Hello, What is the recommended pattern for first checking if cached data exists for a query key, and if not, then performing the query fetch? Bulletproof React offers this pattern, but reading the docs, it seems that passing query options with I suppose one could do some sort of Is there really no better solution than one of the methods above? It feels like this problem is common, and I'm overlooking a simpler method. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Just setting |
Beta Was this translation helpful? Give feedback.
Just setting
staleTime: Infinity
is enough.