We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcc5420 commit 20ed157Copy full SHA for 20ed157
packages/components/src/remix-hook-form/form.tsx
@@ -19,7 +19,7 @@ export const useFormField = () => {
19
const fieldState = getFieldState(fieldContext.name, formState);
20
21
if (!fieldContext) {
22
- throw new Error('useFormField should be used within <FormField>');
+ throw new Error('useFormField must be used within a <FormField> component. Ensure this hook is called from a component that is a child of FormField.');
23
}
24
25
const { id, formItemId, formDescriptionId, formMessageId } = itemContext;
0 commit comments