Skip to content
Discussion options

You must be logged in to vote

This is all working as I would expect. I think the confusion arises because you have two separate forms and it's hard to keep track of what input is bound to what form. I've made a new CodeSandbox that includes full types and does not perform any destructuring of the form methods.

For your example, register and Controller behave differently because they are bound to different forms. The register input is updating the editable sub-form. When you type in the input, the main form is not altered until you click submit. Here, register comes from form2 (the edit form).

The Controller input is bound to the main form. When you type in that input, the <Display /> component will update immediately.…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@frances-datacom
Comment options

Answer selected by frances-datacom
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