useFormContext

Accesses the FormApi via context. Must be used along with a FormProvider or ValidatedForm. This is just like calling useFormScope, but using context instead of passing the scope around.

Usage

const MyForm = () => {
  const form = useFormContext();

  // ...etc
};