Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request - Meta Data by Index #153

Open
wdfinch opened this issue Nov 3, 2020 · 0 comments
Open

Feature Request - Meta Data by Index #153

wdfinch opened this issue Nov 3, 2020 · 0 comments

Comments

@wdfinch
Copy link

wdfinch commented Nov 3, 2020

You can get the meta data for the whole field array using the useFieldArray hook. However, one thing that would be nice would be to get metadata for each index in the field array.

For example in my use case, users can save an individual field array item (the field at an index) rather than the entire field array. Therefore, I want to validate the field array item before allowing the user to save it. This is possible with the useForm hook and some extra work, however, it would be more convenient if I could access the metadata for this field array item and therefore receive the valid/invalid props.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant