#staleTime vs. preloadStaleTime

6 messages · Page 1 of 1 (latest)

thin laurel
#

Hi. What's the difference between these to in terms of caching? I have a loader in my route component. If the preloadStaleTime is for the loader, what does staleTime affects?

forest shuttle
#

They behave differently based on how they are triggered

thin laurel
#

Just as I thought. Thanks!

forest shuttle
#

Preloads are not always used

#

So they have a 30 second stale time by default I think

#

But normal loads are 0