Skip to content

What is correct way to use same useFieldArray multiple times #10141

Answered by Sajarin-M
tparvi asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @tparvi 👋
I don't know the technical details of useFieldArray,
but in this case, if you define fieldArray in your parent component and pass it as a prop to both ReadOnlyList and EditList, it will work as expected.
I hope someone else can clarify the technical details for you.
Please refer this sandbox

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@BaileyMillerSSI
Comment options

@tyler-dot-earth
Comment options

Answer selected by tparvi
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants