Re:React v18.0
by nop_slide on Tuesday March 29, 2022 @02:08PM
(#30846280)
I'm also confused by the `useTransition` idea, to be honest I don't exactly know when or where I would use it after reading about it. Sounds like a specific optimization tactic.
[ Parent
| on HN ]
Re:React v18.0
by danabramov on Tuesday March 29, 2022 @02:14PM
(#30846353)
Over time, we expect that in most cases you wouldn’t use it directly. Instead, a router might use it for route changes, for example, automatically marking them as transitions. This would make it possible for the user to click a link in the middle of rendering, and immediately handle it instead of being blocked until the render completes.