UseFormTrigger
Trigger field or form validation
@example
useEffect(() => {
trigger();
}, [trigger])
<button onClick={async () => {
const result = await trigger(); // result will be a boolean value
}}>
trigger
</button>
type UseFormTrigger<TFieldValues extends FieldValues> = (name?: FieldPath<TFieldValues> | FieldPath<TFieldValues>[] | readonly FieldPath<TFieldValues>[], options?: TriggerConfig) => Promise<boolean>;