Skip to content

Bug? refetchOnWindowFocus: true always performs fetch #8796

Answered by TkDodo
ffxsam asked this question in Q&A
Discussion options

You must be logged in to vote

If set to true, the query will refetch on window focus if the data is stale.

This is correct. staleTime defaults to zero, so yeah, all queries are immediately stale.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ffxsam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants