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.
If you're using Typescript, you lose a lot of type safety when using the context API
Usage
const MyForm = () => {
const form = useFormContext();
// ...etc
};