LUNA
LUNA
Explore posts from servers
TTCTheo's Typesafe Cult
Created by LUNA on 1/16/2024 in #questions
useForm vs useFormState in Nextjs v14
Im just trying to understand the use case for using the react hook useForm over the react-dom useFormState. I see in the Nextjs docs that they recommend using the built in useFormState, but when I see people build apps with the new version of Nextjs a lot of them use the react hook useForm. Im trying to understand the benefit of both. I do notice that some validate on both ends client and server side when using useForm with zod, but it seems like with the use of useFormState and just validating on the server is easier and produces the same result. I also posted the question on stackoverflow so if you want the rep, I got youu. https://stackoverflow.com/questions/77828579/useformstate-vs-useform-in-nextjs-v14
2 replies
TTCTheo's Typesafe Cult
Created by LUNA on 1/13/2024 in #questions
Understanding serverside validation with zod and nextjs server actions???
No description
2 replies
TTCTheo's Typesafe Cult
Created by LUNA on 1/10/2024 in #questions
Type error with Clerk, Just trying to use useUser()
No description
9 replies
TTCTheo's Typesafe Cult
Created by LUNA on 5/2/2023 in #questions
Trying to understand the purpose of keyword "number"
8 replies
TTCTheo's Typesafe Cult
Created by LUNA on 10/7/2022 in #questions
Would I Still Use T3's next-auth Setup
Hello everyone I'm trying to figure out if the t3 next-auth setup would be used in my use case scenario. Im trying to create a web app that requires no sign in or log in. The users of the site would just go onto the website and use it to buy something and get an order then thats it, no log in required. I assume that a session is required for this to save their order data just in case they accidentally close the window, other than that I would like the order data to be deleted with the session. Im not actually creating users and saving them. Im simply storing order data on the session. Would the t3 next-auth setup be used in this case?
10 replies
TTCTheo's Typesafe Cult
Created by LUNA on 9/22/2022 in #questions
How to pass in a React icon as a prop and style it with Tailwind
17 replies