Skip to content

Commit 9d14588

Browse files
Fix: Import useController directly from react-hook-form instead of remix-hook-form
The useController function is not exported from remix-hook-form, so we need to import it directly from react-hook-form to fix the build error.
1 parent 575c0e2 commit 9d14588

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

apps/docs/src/remix-hook-form/autofill-controlled-inputs.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { FormControl, FormDescription, FormItem, FormLabel, FormMessage } from '
55
import { TextInput } from '@lambdacurry/forms/ui/text-input';
66
import type { Meta, StoryObj } from '@storybook/react-vite';
77
import { type ActionFunctionArgs, useFetcher } from 'react-router';
8-
import { RemixFormProvider, getValidatedFormData, useController, useRemixForm } from 'remix-hook-form';
8+
import { useController } from 'react-hook-form';
9+
import { RemixFormProvider, getValidatedFormData, useRemixForm } from 'remix-hook-form';
910
import { z } from 'zod';
1011
import { withReactRouterStubDecorator } from '../lib/storybook/react-router-stub';
1112

@@ -168,4 +169,3 @@ export const ControlledInputsExample: Story = {
168169
}),
169170
],
170171
};
171-

0 commit comments

Comments
 (0)