What is Nostr?
frederik_diamond / FREDERIK DIAMOND
npub1nj0…2gqz
2024-10-09 17:24:08

frederik_diamond on Nostr: The problem I experienced had nothing to do with the form validation I made. Instead, ...

The problem I experienced had nothing to do with the form validation I made. Instead, it turned out that I had imported 'json' and 'redirect' from the wrong package — I had used '@remix-run/node' instead of '@remix-run/react'...

The form validation is almost working perfectly now.

I need to implement a few more things:
- Make the 'Create Account' button disabled when there is an error in the form.
- Bring the error messages from the backend to the frontend. For instance, I've made functionality to check in the DB if the email or username is already taken and if so, then display an error message in the UI.

#WebDevelopment #RemixRun
Having trouble with my #Remix ecommerce project...
I keep getting the error below when clicking on any of my buttons that route to the create-account page: "Error loading route module '/app/routes/create-account/route.tsx, reloading page..."

I have Remix Auth working properly. I can successfully log into accounts, and creating new accounts works as well. However, there’s something in my create-account implementation that makes it impossible to navigate to the create-account page unless I type the URL directly.I suspect it might have something to do with the way I'm handling form validation, but that's mostly just a guess 🤷‍♂️ #dev
Author Public Key
npub1nj0crmtetu84a7j43yegy358mp8u0e4ye7ndkhtd8dg0edll4mpqn52gqz