Skip to content

docs: add getDataByPath to useForm table #12098

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

akhrarovsaid
Copy link
Contributor

What?

This PR adds the getDataByPath utility function to the useForm table in the docs.

Why?

This utility is useful for dealing with arrays and other form state. Users commonly ask for examples on how to deal with arrays when using useField as this function will return a length instead of the expected value object.

How?

Addition of getDataByPath to the useForm object table in docs/admin/react-hooks.mdx.

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

Successfully merging this pull request may close these issues.

1 participant