Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/deps/react-hook-form.ts>UseFormTrigger

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
type alias UseFormTrigger
import { type UseFormTrigger } from "https://deno.land/x/netzo@0.4.72/deps/react-hook-form.ts";

Trigger field or form validation

Examples

Example 1

useEffect(() => {
  trigger();
}, [trigger])

<button onClick={async () => {
  const result = await trigger(); // result will be a boolean value
}}>
 trigger
 </button>

Type Parameters

TFieldValues extends FieldValues
definition: (name?: FieldPath<TFieldValues> | FieldPath<TFieldValues>[] | readonly FieldPath<TFieldValues>[], options?: TriggerConfig) => Promise<boolean>