Skip to content

Commit d91916e

Browse files
committed
fix: missed imports
1 parent b647c03 commit d91916e

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

docs/framework/react/guides/ssr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ Here, we're using [React's `useActionState` hook](https://playfulprogramming.com
326326
> x You're importing a component that needs `useState`. This React hook only works in a client component. To fix, mark the file (or its parent) with the `"use client"` directive.
327327
> ```
328328
>
329-
> This is because you're not importing server-side code from `@tanstack/react-form/nextjs`. Ensure you're importing the correct module based on the environment.
329+
> This is because you're not importing server-side code from `@tanstack/react-form-nextjs`. Ensure you're importing the correct module based on the environment.
330330
>
331331
> [This is a limitation of Next.js](https://github.com/phryneas/rehackt). Other meta-frameworks will likely not have this same problem.
332332

examples/react/next-server-actions/src/app/client-component.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
11
'use client'
22

33
import { useActionState } from 'react'
4-
import { mergeForm, useForm, useTransform } from '@tanstack/react-form'
5-
import { initialFormState } from '@tanstack/react-form/nextjs'
4+
import {
5+
initialFormState,
6+
mergeForm,
7+
useForm,
8+
useTransform,
9+
} from '@tanstack/react-form-nextjs'
610
import { useStore } from '@tanstack/react-store'
711
import someAction from './action'
812
import { formOpts } from './shared-code'

examples/react/next-server-actions/src/app/shared-code.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { formOptions } from '@tanstack/react-form/nextjs'
1+
import { formOptions } from '@tanstack/react-form-nextjs'
22

33
export const formOpts = formOptions({
44
defaultValues: {

examples/react/tanstack-start/src/utils/form.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
ServerValidateError,
44
createServerValidate,
55
getFormData,
6-
} from '@tanstack/react-form/start'
6+
} from '@tanstack/react-form-start'
77
import { setResponseStatus } from '@tanstack/react-start/server'
88
import { formOpts } from './form-isomorphic'
99

0 commit comments

Comments
 (0)