Skip to content
Discussion options

You must be logged in to vote

suspense is only shown instead of a "hard" loading spinner, where you have no data. Once you have data, react-query will show you stale data and not suspend anymore. You can look at isFetching to see if a refetch is going on, and either replace our data with a spinner, or show the spinner in addition to stale data.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@andrewnaeve
Comment options

@TkDodo
Comment options

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