File tree 1 file changed +10
-5
lines changed
1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -787,11 +787,7 @@ setValue('test', '')
787
787
Set to < code > true</ code > during validation.
788
788
</ >
789
789
) ,
790
- validatingFields : (
791
- < >
792
- Capture fields which are getting async validation.
793
- </ >
794
- ) ,
790
+ validatingFields : < > Capture fields which are getting async validation.</ > ,
795
791
} ,
796
792
errors : {
797
793
title : "errors" ,
@@ -2936,6 +2932,15 @@ const { field: checkbox } = useController({ name: 'test1' })
2936
2932
< code > Controller</ code > . It's useful for creating reusable Controlled
2937
2933
input.
2938
2934
</ p >
2935
+ < p >
2936
+ < strong > Note:</ strong > if you simply want to control a field's value
2937
+ from outside the form, it's not necessary to use{ " " }
2938
+ < code > useController</ code > . You can simply use the{ " " }
2939
+ < Link href = "/docs/useform#values" >
2940
+ < code > values</ code >
2941
+ </ Link > { " " }
2942
+ option of < code > useForm</ code > .
2943
+ </ p >
2939
2944
</ >
2940
2945
) ,
2941
2946
} ,
You can’t perform that action at this time.
0 commit comments