specific-silverS
Refine3y ago
6 replies
specific-silver

useForm

I build a custom hook that generates the form my problem is if i created a new record , then i clicked the edit button the data will be loaded successfully but get back then clicked the edit button for the same record the data will not be loaded which mean all the inputs are empty
i tried to console the getValues() function I see at the first time it loads the form then it bring the data from api but the second click will not fetch the data from the api
that's my problem
Was this page helpful?