react-final-form-arrays icon indicating copy to clipboard operation
react-final-form-arrays copied to clipboard

Having hidden FieldArrays in FieldArrays can mess up state if outer FieldArray item is deleted

Open vinczemarton opened this issue 5 years ago • 2 comments

Are you submitting a bug report or a feature request?

Bug report

What is the current behavior?

https://codesandbox.io/s/react-final-form-nested-arrays-validation-32he5

  1. Expand the first company's customer section
  2. See that all customers are editable (typing in customer fields is possible, company name is editable)
  3. Delete the company that is currently expanded (red x next to company name)
  4. The customer fields are uneditable, the fields contain the deleted company's customers

What is the expected behavior?

All fields remain editable

Sandbox Link

https://codesandbox.io/s/react-final-form-nested-arrays-validation-32he5

What's your environment?

Latest chrome

vinczemarton avatar Nov 03 '19 12:11 vinczemarton

@vinczemarton did you found any work around for the issue ?

Deepak7985 avatar Nov 30 '21 10:11 Deepak7985

No, I backed out from using the library as it became very hard to debug performance.

vinczemarton avatar Dec 01 '21 15:12 vinczemarton