79412985

Date: 2025-02-04 20:45:17
Score: 1
Natty:
Report link

The fix was to add a reset:

const { control, handleSubmit } = useForm<Item>({
    defaultValues: {
      name: Item.name,
      description: Item.description,
    },
  });
  useEffect(() => {
    reset(item)
  }, [item]);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: J.Cart