billychen0894 / florist-ecommerce-app

Florist eCommerce App built with Next.js 14
https://florist-ecommerce-app.vercel.app
0 stars 0 forks source link

Feat/auth: fix signUp email form async validation & complete signUp user flow #27

Closed billychen0894 closed 1 year ago

billychen0894 commented 1 year ago

The signUp email form async validation is now debounced and will cache previous error result in order to prevent unnecessary api calls. The async validation will only be called when a valid email is already registered or is a valid email but user keeps typing.

Also, the form submission is added the success/error modal to notify users what is happening. If it's successful, it will redirect users to homepage when modal is closed. If it's failed, it will notify users and users will stay on the same page when modal is closed.