Long polling with suspense and refetchInterval #4499
-
Currently, when I set refetchInterval with suspense, I only see the spinner for the initial load. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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 |
Beta Was this translation helpful? Give feedback.
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.