Will _disableForm
become part of the public API?
#11462
Unanswered
david-crespo
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I noticed
_disableForm
was added in the recent form-leveldisabled
work, but it's not documented and has the underscore in front.react-hook-form/reports/api-extractor.md
Line 80 in 6fee03c
It happens to be used in
useForm
in exactly the way I was hoping to use it in my own code — it auseEffect
to keep disabled state synced with a prop. (I want to do it this way because I want to do it in a component myuseForm
result is passed to, not at top level in everyuseForm
call.)react-hook-form/src/useForm.ts
Lines 105 to 108 in 6fee03c
Basically I'm curious how risky it is for me to use this. Is it planned for
_disableForm
to become part of the public API if it is found to work well?Beta Was this translation helpful? Give feedback.
All reactions