Replies: 1 comment
-
You can create a function with However, this is an experimental feature. You need to enable it in your |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys, so how would you handle onSubmit within the forms?
Context: Once the user fills out the form for creating the user i need it to send this to prisma and create the user in the db. Once this happends i either show a success or destructive toast based on if there was an error or not?
Nexjts router only works in client components but having the prisma logic doesn't? Do i need to make a pages/api/endpoint for this or how would you approach it?
Beta Was this translation helpful? Give feedback.
All reactions