Is it forced to using Await to make React.Suspense's fallback work? #10697
-
I'm experimenting with new v6 features. I did some searching and reviewed the docs again. It seems that the only way to make Suspense work is to use I'm not an expert at js or React, but this seems not very good, IMHO. I'm also using react-query to manage server state. Didn't find any docs about combine react-query & loader & Await. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
For the initial execution of loaders in the browser, you can show a loading indicator via |
Beta Was this translation helpful? Give feedback.
For the initial execution of loaders in the browser, you can show a loading indicator via
fallbackElement
. TheAwait
/Suspense
combination is for Deferred Data.