final-form / react-final-form-arrays

A component for rendering and editing arrays 🏁 React Final Form
MIT License
205 stars 70 forks source link

Data prop is ignored despite being included in the types #141

Open benwiles1 opened 4 years ago

benwiles1 commented 4 years ago

Are you submitting a bug report or a feature request?

Feature request, but the types suggest that it might be a bug

What is the current behavior?

data prop is ignored in useFieldArray and FieldArray

What is the expected behavior?

data prop to be included when registering the field

Sandbox Link

https://codesandbox.io/s/kind-cartwright-g2kjl?file=/src/App.js

What's your environment?

final-form@4.20.1 final-form-arrays@3.0.2 react-final-form@6.5.1 react-final-form-arrays@3.1.1