Allow opting out of startTransition #12855
KurtGokhan
started this conversation in
Proposals
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Original issue here #12552, and paraphrasing my comment directly:
After a few unsuccessful attempts to migrate to v7, my thoughts are still the same.
This issue can be solved in one of the two ways:
startTransition
.startTransition
, but internally useuseDeferredValue
to get the router state. Expose another hook likeuseLocationSync
that can get the non-deferred router state so that users can opt-out and build their custom hooks upon that. This is more effort and I don't know if it would work well.I think
startTransition
is incompatible with most client-side applications, and it will be too late when people start noticing this. Please don't let this be another nail in the coffin for client-side React.Beta Was this translation helpful? Give feedback.
All reactions