Replies: 1 comment 1 reply
-
|
The raw // form-context.ts
export const { fieldContext, useFieldContext, formContext, useFormContext } =
createFormHookContexts()
// form.ts
const { useAppForm } = createFormHook({
fieldContext, // 👈 This is why it's exported
formContext,
fieldComponents: { TextField },
formComponents: { SubscribeButton },
})That's it. The pattern is:
You'd never call |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Trying to understand why
fieldContextis exported in the docs when none of the examples ever use it? Everything is using the hook. 🫤 What am I missing?I get that it's used to build an
useAppFormhook, withcreateFormHookis that the only use?Beta Was this translation helpful? Give feedback.
All reactions