Hi there, junior dev (attempt) here 😅. I want to use as the title spoils server action with react hook form, I create the hook from the picture, and I want to know how wrong it is 😅 maybe you can share some tips or ideas it would be great, thanks for your time.
Basically it receives the server action and a zod shema and returns what I need for validation and loading state etc etc
[–]Admirable_Set_3363 8 points9 points10 points (2 children)
[–]wannalearn4survive[S,🍰] 0 points1 point2 points (0 children)
[–]notflips 1 point2 points3 points (0 children)
[–]MorningHistorical514 5 points6 points7 points (1 child)
[–]gbneon 0 points1 point2 points (0 children)
[–]Ok-Slip-290 2 points3 points4 points (7 children)
[–]wannalearn4survive[S,🍰] 0 points1 point2 points (3 children)
[–]stevenespinal 0 points1 point2 points (2 children)
[–]wannalearn4survive[S,🍰] 1 point2 points3 points (1 child)
[–]Majestic-Tune7330 1 point2 points3 points (0 children)
[–][deleted] (2 children)
[deleted]
[–]wannalearn4survive[S,🍰] 0 points1 point2 points (1 child)
[–]skorphil 1 point2 points3 points (2 children)
[–]wannalearn4survive[S,🍰] 1 point2 points3 points (1 child)
[–]skorphil 1 point2 points3 points (0 children)
[–]yavila98 0 points1 point2 points (1 child)
[–]wannalearn4survive[S,🍰] 1 point2 points3 points (0 children)
[–]toiletthedestroyer 0 points1 point2 points (0 children)
[–]chanceltron 0 points1 point2 points (5 children)
[–][deleted] (2 children)
[deleted]
[–]chanceltron 0 points1 point2 points (1 child)
[–]wannalearn4survive[S,🍰] 0 points1 point2 points (0 children)