RFC: useFieldArray replace
method
#6357
bluebill1049
started this conversation in
RFC
Replies: 2 comments 4 replies
-
PR is merged. |
Beta Was this translation helpful? Give feedback.
2 replies
-
released and the doc is updated too. |
Beta Was this translation helpful? Give feedback.
2 replies
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Context
Developers will be required to reset a field array with
reset
API, this not only affects a single field array but the entire form, which could lead to unexpected behavior, you can achieve similar behavior withsetValue
with field arrayname
. We want to bring a new APIreplace
to make API more declarative and easier for developers who just want to update and replace a specific field array.Props
reset
the entire formCons
Proposal
PR
#6304
cc @jorisre @kotarella1110 @barrymay
Beta Was this translation helpful? Give feedback.
All reactions