Refetch minimum duration?

I wish to always keep data up to date and I use
{
refetchOnMount: true,
refetchOnWindowFocus: true,
refetchOnReconnect: true,
}
{
refetchOnMount: true,
refetchOnWindowFocus: true,
refetchOnReconnect: true,
}
Is it possible to set a minimum elapsed time before this is triggered? Yes, refetch on alt-tab but only if last refetch was a minute ago? I dont want users to abuse my API
2 Replies
stanisław
stanisław•17mo ago
staleTime @Shoodey
isaac_way
isaac_way•17mo ago
👆 stale time = "How long before refetches can be triggered" cache time = "How long to keep data in the cache while no components using that data are mounted"