Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect too fast for form to handle. (Register page) #44

Closed
Fr3akyMurk opened this issue Feb 27, 2024 · 3 comments
Closed

Redirect too fast for form to handle. (Register page) #44

Fr3akyMurk opened this issue Feb 27, 2024 · 3 comments

Comments

@Fr3akyMurk
Copy link
Contributor

Fr3akyMurk commented Feb 27, 2024

Describe the bug
The form gets redirected as soon as possible (100ms that i saw) (This was code for the editor, not sign in.) which is way too soon for the db to even get a request and thus you get redirected without your account being created.
This seems to only affect users like me who do not use planetscale but for best practices it could be a great idea to implement a more stable fix.

To Reproduce

Expected behavior
An account being created before you get redirected, or alternatively sign the user in immediately after creating the account.

Screenshots
Not applicable, a video would be more suitable for this type of issue.

@Fr3akyMurk
Copy link
Contributor Author

#46 PR opened.

@Fr3akyMurk
Copy link
Contributor Author

Surprisingly, login page does not do this, only the signup page.

@iamtouha
Copy link
Collaborator

This occurred because the link component wraps the button and the button submits the form when clicked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants