Skip to content
Discussion options

You must be logged in to vote

It would help if you fix handleSetFields to update fields individually to make each controller see the changes.
<Controller name="car.model"> doesn't know car object has changed. It only detects field changes.

  const handleSetFields = () => {
    setValue("car.name", "Ford")
    setValue("car.model", "Mustang");
  };

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Melancholism
Comment options

Answer selected by Melancholism
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants