79490611

Date: 2025-03-06 20:30:13
Score: 2
Natty:
Report link

I believe defaultValues are only set once. I think you want to check use setValue("end", NEW_VALUE); See (https://react-hook-form.com/docs/useform/setvalue). You could also use the reset() function which accepts a new set of default values for the form. Make sure you pass the current start value so it doesn't get reset and that default end value.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Squiggle