Aron Edwards

Results 3 comments of Aron Edwards

May be worth checking what the first value passed for 'defaultStudents' is defaults is cached on first render, caught me out also, fixed by firing a useEffect that triggers form.reset...

Does sound like a cached value could be an issue, maybe provide .reset() with the new 'defaultValues' ? https://react-hook-form.com/docs/useform/reset

Possibly the initial defaultValues see this thread https://github.com/shadcn-ui/ui/issues/1361