https://tanstack.com/query/latest/docs/framework/react/guides/window-focus-refetching
Window Focus Refetching | TanStack Query React Docs
If a user leaves your application and returns and the query data is stale, TanStack Query automatically requests fresh data for you in the background. You can...
window focus refetchingtanstack queryreact docs