Replies: 2 comments
-
I also ran into this issue - it would be great if we could show an indication when a transition is in progress. |
Beta Was this translation helpful? Give feedback.
0 replies
-
same here, this is pretty essential |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When rendering is suspended for a long time (e.g. data fetching, though I know that loaders are the recommended way to do it, but sometimes...) the user doesn't see any indication of a navigation happening.
I know that in theory wrapping the function returned by
useNavigate
inuseTransition
would be a solution in some cases, but not when navigation is initiated by the browser.I'd like to suggest a feature where either
useNavigation().state
returns loading while the transition is pending, or the pending state is exposed separately.I assume that React.startTransition should be replaced with useTransition for this to work. I tried making this modification myself but when switching to useTransition the transition doesn't work at all anymore.
Beta Was this translation helpful? Give feedback.
All reactions