-
Hi, I apologize if this has been asked already, since I have not found it. I would like to know if there is a way to mark state updates caused by a cache update as a transition, so that the components that are rendered because of the cache update would render in a transition. The flow of request is as follows:
Desired stateI want to keep the stale pending UI, while the new render caused by the cache update is suspended. So my question comes to this, is this use case supported in react-query, or should I handle this manually? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I eventually solved this by using useDeferredValue, like so:
|
Beta Was this translation helpful? Give feedback.
I eventually solved this by using useDeferredValue, like so: