Uh oh!
There was an error while loading. Please reload this page.
Update transition docs for React 19 - #6837
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@rickhanlonii is attempting to deploy a commit to the Meta Open Source Team on Vercel. A member of the Team first needs to authorize it. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
tom-sherman
commented
May 7, 2024
To be honest I really don't see async transitions (with useTransition) being practically adoptable without the race condition handling built in. Without this, they are simply a target for libraries as the queue handling is very tricky. There are so many footguns with using them on their own that I think there needs to be some massive disclaimer, and for them to be called out as a tool for library and framework authors. |
@tom-sherman it's going to be more common for app developers to use |
rickhanlonii
commented
May 7, 2024
It's similar to how doing event handlers to submit data on your own is tricky (for example, this case isn't handled in a raw event handler either), and libraries make that easier using raw events and exposing props to limit the complexity to app developers. |
rickhanlonii
commented
May 7, 2024
Converting back to WIP, I think there is a better way to explain this. |
Uh oh!
There was an error while loading. Please reload this page.
ff622d1 to
159ae2fCompare159ae2f to
4b3fc64Compare4b3fc64 to
6da0f3bComparerickhanlonii
commented
Nov 27, 2024
Updated this page based on feedback, some notable changes:
|
noahlemen
left a comment
There was a problem hiding this comment.
added some minor suggestions
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Noah Lemen <noah.lemen@gmail.com>
* Convert "Canary" callouts to "React 19 beta" (#6811) * Convert "Canary" callouts to "React 19 beta" * Starting in * Bump version string * Bump deploy * Bump deploy * Bump deploy * [19] Remove <NextMajor> callouts (#6844) * Remove <NextMajor> callouts * rm if(node) * Delete removed APIs from 19 docs (#6845) * Add information about ref handling in strict mode (#6777) * Add information about DOM ref handling in strict mode * switch order of ref object / ref callback in strictmode doc * use 'refs to components' terminology instead of 'DOM refs' * update references to canary/r19 * Expand usage example and remove badges --------- Co-authored-by: Rick Hanlon <rickhanlonii@fb.com> * [19] s/"Server Action"/"Server Function" (#7180) * [19] s/Server Action/Server Function * Revert /blog and change redirect * Add note * Tweak note * [v19] Update sandboxes to 19 RC (#7196) * Update transition docs for React 19 (#6837) * Add async transitions to React 19 docs * Updates from feedback * tweaks * grammar * Add startTranstion API * Apply suggestions from code review Co-authored-by: Noah Lemen <noah.lemen@gmail.com> * Updated * capitalization * grammar --------- Co-authored-by: Noah Lemen <noah.lemen@gmail.com> * [19] Add docs for prerender APIs (#7320) * Add prerender APIs * fix code blocks --------- Co-authored-by: Noah Lemen <noah.lemen@gmail.com>
Preview
This PR updates the
useTransitiondocs to include actions.useAlso makes minor edits to
startTransitionto use actions.