You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@eps1lon thank you. But now I get an error that App suspended while rendering, but no fallback UI was specified. As you can see I do have a fallback set and this is my only call to Suspend.
<Suspense> needs to be above the component that Suspended. In your example, App Suspended, so you want to place <Suspense> above it. Alternatively, you can move the setMessage call into Child.
No problem. Appreciate you playing with experimental stuff! Sorry the docs are rough/outdated. We're focused on polishing this and getting it into a releasable stage and then we'll have better docs.
Activity
eps1lon commentedon Mar 25, 2021
It was renamed to
unstable_useTransition
.timeoutMS
was also removed.bvaughn commentedon Mar 25, 2021
The idea is that you'd create one using something like Code Sandbox :)
Without a repro I can't be positive, but it seems like @eps1lon has answered this question though, so I'm going to close this issue for now.
jsoneaday commentedon Mar 25, 2021
@eps1lon thank you. But now I get an error that App suspended while rendering, but no fallback UI was specified. As you can see I do have a fallback set and this is my only call to Suspend.
gaearon commentedon Mar 25, 2021
<Suspense>
needs to be above the component that Suspended. In your example,App
Suspended, so you want to place<Suspense>
above it. Alternatively, you can move thesetMessage
call intoChild
.jsoneaday commentedon Mar 25, 2021
Thank you Dan. Really appreciate it.
gaearon commentedon Mar 25, 2021
No problem. Appreciate you playing with experimental stuff! Sorry the docs are rough/outdated. We're focused on polishing this and getting it into a releasable stage and then we'll have better docs.
gaearon commentedon Mar 25, 2021
Btw, https://github.com/reactjs/server-components-demo is the latest thinking on how the pieces fit together. So feel free to check that out too. It has a few uses of
useTransition
.jsoneaday commentedon Mar 25, 2021
@gaearon I totally understand. I should have done my own investigation before I submitted. I love React and am eagerly waiting for concurrent mode.
gaearon commentedon Mar 25, 2021
No worries at all, it's a bit hard to find the info now. Feel free to ask any follow-up questons here!