Caching a data loader's output with staleTime not working
I'm new to Tanstack Router/Start and am looking to implement standard ISR/stale while revalidate behaviour:
1) Data gets a bundled at build time
2) Cached data is served without the fetch functions being invoked for 30 minutes (
3) When the
In this implementation, I'm seeing
1) Data gets a bundled at build time
2) Cached data is served without the fetch functions being invoked for 30 minutes (
staleTime)3) When the
staleTime is hit, serve cache data one more time, rebuild cache under the hood for the next requestIn this implementation, I'm seeing
getRecentTrends called on every page request though, rather than only once every 30 minutes. Am I doing this right?