Great video Hamed. Thank you for your time it's appreciated. I have a quick question, is there a way to get if the form is dirty much like react-hook-form was doing ?
So, previously I've been using a combination of the zsa library to create typesafe server actions and it's corresponding useServerAction hook, useForm from react-hook-form and zod for form validation and processing, and shadcn's Form components that help wrap react-hook-form. Is there any advantage to using these new methods over what I was using?
How would you apply this in a high level form ? For example a media selector with existing data and the option to upload new data in the media selector. Where would you fetch the media ? And which path you revalidate ? Is it not good to fetch from a page component ?
Great video Hamed. Thank you for your time it's appreciated. I have a quick question, is there a way to get if the form is dirty much like react-hook-form was doing ?
So, previously I've been using a combination of the zsa library to create typesafe server actions and it's corresponding useServerAction hook, useForm from react-hook-form and zod for form validation and processing, and shadcn's Form components that help wrap react-hook-form. Is there any advantage to using these new methods over what I was using?
How would you apply this in a high level form ? For example a media selector with existing data and the option to upload new data in the media selector.
Where would you fetch the media ? And which path you revalidate ? Is it not good to fetch from a page component ?
What is the difference between useactionstate and usestartransition? What is the state we should use between them for fetching data?
دمت گرم😍
Hamed Make a video on Arcjet and NextJs 15 if possible, thank you very much
How to set cookies in server actions ?
tysm❤️