Replies: 1 comment 1 reply
-
No nested support at the moment. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Consider the following example
NestedFormProvider
makes the children inside nested tox.y
.Then the
input
inA
is registered tox.y.name
in the form inApp
.Other methods like
errors
andsetValue
also get nested tox.y
.component
A
becomes more reusable. It can now be embedded into any other form that contains the same structure of itself.I think that there have been similar proposals, but I can't find one on this discussion page.
The most relevant one I saw is #7354.
It seems that others have faced the same kind of problems.
However, the approach in the discussion above requires programmers to write path joining code every time.
If react-hook-form provides built-in support for this problem, it would be handier.
Do we have any?
Beta Was this translation helpful? Give feedback.
All reactions