Description
Bug report
What is the current behavior?
FieldArray re-renders on any Field event even when the FieldArray subscription={{}} prop is set, seems like the subscription prop is ignored.
This happens when using react-final-form-arrays 3 and react-final-form 6
when I downgrade to react-final-form-arrays 2 and react-final-form 4 everything works as expected
What is the expected behavior?
FieldArray should not re-render on Field change event when the subscription prop is set to {{}}
Sandbox Link
https://codesandbox.io/embed/react-final-form-field-arrays-mblll
What's your environment?
{
"final-form": "4.16.1",
"final-form-arrays": "1.1.2",
"react": "16.8.6",
"react-dom": "16.8.6",
"react-final-form": "6.3.0",
"react-final-form-arrays": "3.1.0",
}
Other information
Use the linked sandbox and see the console log comment that runs in the FieldArray component when the FieldArray re-renders on each key type in any FieldArray input. Than downgrade to react-final-form-arrays 2 and react-final-form 4 and the log will print only when the FieldArray mounts and not on every key press in the input field