Open slavasitnikov opened 5 years ago
bug report
After update to v3 function change is missing in props.fields
change
v3.1.0 https://codesandbox.io/s/react-final-form-field-arrays-qeeu5
props.fields.change is not undefined
props.fields.change
v1.0.4 https://codesandbox.io/s/react-final-form-field-arrays-02s9n
"final-form": "4.8.2", "final-form-arrays": "3.0.1", "react": "16.8.6", "react-dom": "16.8.6", "react-final-form": "6.3.0", "react-final-form-arrays": "3.1.0",
windows 10, chrome 75
Maybe it's bug in useField from react-final-form. Cuz if I call useForm().getFieldState(name) instead useField(name) I see missing fieldState props
useField
react-final-form
useForm().getFieldState(name)
useField(name)
https://github.com/final-form/react-final-form-arrays/blob/master/src/useFieldArray.js#L59
Is any new information about this?
Are you submitting a bug report or a feature request?
bug report
What is the current behavior?
After update to v3 function
change
is missing in props.fieldsv3.1.0 https://codesandbox.io/s/react-final-form-field-arrays-qeeu5
What is the expected behavior?
props.fields.change
is not undefinedv1.0.4 https://codesandbox.io/s/react-final-form-field-arrays-02s9n
What's your environment?
windows 10, chrome 75
Other information
Maybe it's bug in
useField
fromreact-final-form
. Cuz if I calluseForm().getFieldState(name)
insteaduseField(name)
I see missing fieldState propshttps://github.com/final-form/react-final-form-arrays/blob/master/src/useFieldArray.js#L59