You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe. <Controller> component has to have control prop defined, even when using <FormContext>. Maybe it would be possible to use const { control } = useFormContext() in case there is no control prop directly passed?
Describe the solution you'd like
I'd love to don't repeat myself and use clean and clear <Controller> component without passing additional control each and every time.
Describe alternatives you've considered
Previously, React Hook Form input worked as described above.
The text was updated successfully, but these errors were encountered:
kusmierz
changed the title
<Controller>'s control should be optional (useFormContext)
<Controller>'s control prop should be optional (useFormContext)
Dec 29, 2019
Is your feature request related to a problem? Please describe.
<Controller>
component has to havecontrol
prop defined, even when using<FormContext>
. Maybe it would be possible to useconst { control } = useFormContext()
in case there is nocontrol
prop directly passed?Describe the solution you'd like
I'd love to don't repeat myself and use clean and clear
<Controller>
component without passing additionalcontrol
each and every time.Describe alternatives you've considered
Previously, React Hook Form input worked as described above.
Additional context
https://github.com/react-hook-form/react-hook-form-input/blob/master/src/index.tsx#L55-L58
The text was updated successfully, but these errors were encountered: