In a simple hello world app, it seems that the loading state on the EmailAuth component is not being reset properly receiving an Invalid login credentials error. This causes the form to not be submittable afterwards even after adjusting the form values, until the user either refreshes the page or changes the auth_view.
I think it might have something to do with the isMounted ref value being always false in my app (see the screenshot below), just judging by the source code.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
This happens with code as simple as the following:
Bug report
Describe the bug
In a simple hello world app, it seems that the
loading
state on theEmailAuth
component is not being reset properly receiving anInvalid login credentials
error. This causes the form to not be submittable afterwards even after adjusting the form values, until the user either refreshes the page or changes theauth_view
.I think it might have something to do with the
isMounted
ref value being alwaysfalse
in my app (see the screenshot below), just judging by the source code.To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
This happens with code as simple as the following:
Expected behavior
The form can be resubmitted after changing credential values.
Screenshots
If applicable, add screenshots to help explain your problem.
In the below screenshot, you can see (using React devtools) that the
isMounted
ref
isfalse
and theloading
state boolean staystrue
.System information