Skip to content

Commit 200aa7e

Browse files
dojhoanrd-jwdojhoanrd-jwautofix-ci[bot]
authored
docs(*): fix broken code examples in Vue and React SSR guides (#2046)
* docs(*): fix broken code examples in Vue and React SSR guides * docs(*): update useStore import to use re-export from react-form-start * ci: apply automated fixes and generate docs --------- Co-authored-by: dojhoanrd-jw <[email protected]> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
1 parent dc7c982 commit 200aa7e

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

docs/framework/react/guides/ssr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ Finally, we'll use `getFormDataFromServer` in our loader to get the state from o
106106

107107
```tsx
108108
// app/routes/index.tsx
109+
import { createFileRoute } from '@tanstack/react-router'
109110
import {
110-
createFileRoute
111111
mergeForm,
112112
useForm,
113113
useStore,

docs/framework/vue/guides/arrays.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ TanStack Form supports arrays as values in a form, including sub-object values i
77

88
## Basic Usage
99

10-
To use an array, you can use `field.state.value` on an array value in conjunction
11-
with [`Index` from `solid-js`](https://www.solidjs.com/tutorial/flow_index):
10+
To use an array, you can use `field.state.value` on an array value in conjunction with `v-for`:
1211

1312
```vue
1413
<script setup lang="ts">

docs/framework/vue/guides/async-initial-values.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ As such, this guide shows you how you can mix-n-match TanStack Form with TanStac
2121
<script setup lang="ts">
2222
import { useForm } from '@tanstack/vue-form'
2323
import { useQuery } from '@tanstack/vue-query'
24-
import { watchEffect, reactive } from 'vue'
24+
import { watchEffect, reactive, computed } from 'vue'
2525
2626
const { data, isLoading } = useQuery({
2727
queryKey: ['data'],

0 commit comments

Comments
 (0)