Skip to content

Commit a020a0c

Browse files
Merge branch 'main' into patch-1
2 parents 2b0ac76 + 636001e commit a020a0c

File tree

1 file changed

+2
-3
lines changed
  • src/routes/solid-router/reference/data-apis

1 file changed

+2
-3
lines changed

src/routes/solid-router/reference/data-apis/action.mdx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,8 @@ const deleteTodo = action(async (formData: FormData) => {
4646

4747
Using `with`:
4848

49-
```jsx del={6,7} ins={8}
50-
const deleteTodo = action(async (formData: FormData) => {
51-
const id = Number(formData.get("id"))
49+
```jsx del={5,6} ins={7}
50+
const deleteTodo = action(async (id: number) => {
5251
await api.deleteTodo(id)
5352
})
5453

0 commit comments

Comments
 (0)