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

Improve documentation for useWatch exact #1035

Open
KilianB opened this issue Dec 18, 2023 · 0 comments
Open

Improve documentation for useWatch exact #1035

KilianB opened this issue Dec 18, 2023 · 0 comments

Comments

@KilianB
Copy link

KilianB commented Dec 18, 2023

Is your feature request related to a problem? Please describe.
Every few months I come back to the documentation of useWatch -> exact I need to go into the source code to figure out what this property is doing.

The description isn't self explanatory.

This prop will enable an exact match for input name subscriptions."

Describe the solution you'd like

I would like to have a more detailed description which explains what a non exact match includes and how the return value of such a subscription looks like.

Ref: https://github.com/orgs/react-hook-form/discussions/8447

and

https://github.com/react-hook-form/react-hook-form/blob/7e5af8d090fd882f4865ea9975b8f6a13bc596f1/src/logic/shouldSubscribeByName.ts#L14-L18

@bluebill1049 bluebill1049 transferred this issue from react-hook-form/react-hook-form Dec 22, 2023
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