How to fetch default values from DB for a React Hook/Zod form?
Unanswered
ascee posted this in #help-forum
asceeOP
Detailed in this StackOverflow question:
https://stackoverflow.com/questions/77520104/how-to-add-a-dynamic-server-fetched-default-value-to-a-zod-validated-react-hook
https://stackoverflow.com/questions/77520104/how-to-add-a-dynamic-server-fetched-default-value-to-a-zod-validated-react-hook
1 Reply
Cape horse mackerel
I think you'll find a solution after reading https://tkdodo.eu/blog/react-query-and-forms