Skip to content
Discussion options

You must be logged in to vote

yes, this is the currently expected behaviour. queries that don't have data yet are always stale, so if it has an error but no data, it will be stale. You can have data and error at the same time if e.g. a background refetch fails.

We have a similar discussion here:

would refetchOnWindowFocus: (data, error) => !!error work for you as well?

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@saby22
Comment options

@TkDodo
Comment options

@saby22
Comment options

@TkDodo
Comment options

@TkDodo
Comment options

Answer selected by saby22
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