-
-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Description
Sometimes I see this error message when logging in and when resetting the password
A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.
To solution seems to be to wrap navigate(routes.home()) in a startTransition, like this
useEffect(() => {
if (isAuthenticated) {
startTransition(() => {
navigate(routes.home())
})
}
}, [isAuthenticated])Change needed on LoginPage, ResetPasswordPage and SignupPage
Metadata
Metadata
Assignees
Labels
No labels