Replies: 3 comments
-
no
no
no, not really, because the premise of Out of curiosity: Why would you want that? Additionally, you can always look at |
Beta Was this translation helpful? Give feedback.
-
That's fair. 👍
For our app, we do not believe that on every occasion we provide a better user experience by showing stale data and adding a loader to indicate that data is being updated in the background. There are occasions where we don't want that to happen, e.g. forms (we've read your blog post on this), or when we are sure that the data has been previously updated (e.g. With the introduction of
Thank you 👍 |
Beta Was this translation helpful? Give feedback.
-
I'm struggling to implement. I think it would be possible if |
Beta Was this translation helpful? Give feedback.
-
I have two questions that I might have missed when reading the documentation.
Is it possible to cause a component to suspend when a useSuspenseQuery is refetching?
Is it possible to suspend a component on mount if the cached data is stale?
If not, would this be something interesting to have available on the library? I was thinking about an option like:
{ suspendOn: "refetch", "staleFetch", "always", "noData" }
Beta Was this translation helpful? Give feedback.
All reactions