You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update Start to Release Candidate version. Extracted start, remix and nextJs adapters to the respective libraries @tanstack/react-form-start, @tanstack/react-form-remix, and @tanstack/react-form-nextjs,
// Notice the import is from `react-form`, not `react-form/nextjs`
260
258
import {
259
+
initialFormState
261
260
mergeForm,
262
261
useForm,
263
262
useStore,
264
263
useTransform,
265
-
} from'@tanstack/react-form'
264
+
} from'@tanstack/react-form-nextjs'
266
265
importsomeActionfrom'./action'
267
266
import { formOpts } from'./shared-code'
268
267
@@ -327,7 +326,7 @@ Here, we're using [React's `useActionState` hook](https://playfulprogramming.com
327
326
>xYou'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.
328
327
>```
329
328
>
330
-
> 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.
331
330
>
332
331
> [This is a limitation of Next.js](https://github.com/phryneas/rehackt). Other meta-frameworks will likely not have this same problem.
333
332
@@ -347,7 +346,7 @@ Let's start by creating a `formOption` that we'll use to share the form's shape
0 commit comments