Suspense for mutation #967
Replies: 6 comments 4 replies
-
|
Just ran into this myself. It seems as though |
Beta Was this translation helpful? Give feedback.
-
|
Hello! I am using react-query 3.19.1. In our new application we'd like to handle any loading state with |
Beta Was this translation helpful? Give feedback.
-
|
looking at the code, there is support for |
Beta Was this translation helpful? Give feedback.
-
|
Why not suspense for useMutation? |
Beta Was this translation helpful? Give feedback.
-
|
With the release of React 19, is using the |
Beta Was this translation helpful? Give feedback.
-
|
FYI: I solved the problem on my side using the following to generate a "suspense aware mutation". It most likely will not work for all cases, but it seems to works for mine... |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to trigger suspense mode for useMutation hook?
Beta Was this translation helpful? Give feedback.
All reactions