I was misled by the documentation about FieldArrays on the Advanced page:
This paragraph seems misleading as, append, prepend and so on are supported by the useFieldArray hook when used with Controller. The CodeSandbox link in this paragraph leads to an example which may be considered deprecated, what do you think?
When I read this comment in the code sample below the previous paragraph, I thought I could not use useFieldArray with Controller. It is only when I clicked the CodeSandbox link in the upper right corner that I realised it was supported. Maybe the embedded code sample should be replaced by the CodeSandbox one to make things clear.
I was misled by the documentation about FieldArrays on the Advanced page:
append
,prepend
and so on are supported by theuseFieldArray
hook when used withController
. The CodeSandbox link in this paragraph leads to an example which may be considered deprecated, what do you think?useFieldArray
withController
. It is only when I clicked the CodeSandbox link in the upper right corner that I realised it was supported. Maybe the embedded code sample should be replaced by the CodeSandbox one to make things clear.