Allow to trigger Suspense on every fetch request #4021
-
Currently Suspense is triggered only on initial fetch and it's not possible to display loader for next requests. Imagine following situation: Currently there is no way to handle that scenario with react-query with Suspense, I could manually call Below is example with button that calls manually refetch and it would be great to somehow display loader from there |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Following PR is not addressing this issue #3935 |
Beta Was this translation helpful? Give feedback.
-
It might be tricky because there are cases when in fact default behavior is desired. |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
resetQueries
solves this issue. We can close this discussion