We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
with
action
1 parent 17509cd commit 636001eCopy full SHA for 636001e
src/routes/solid-router/reference/data-apis/action.mdx
@@ -46,9 +46,8 @@ const deleteTodo = action(async (formData: FormData) => {
46
47
Using `with`:
48
49
-```jsx del={6,7} ins={8}
50
-const deleteTodo = action(async (formData: FormData) => {
51
- const id = Number(formData.get("id"))
+```jsx del={5,6} ins={7}
+const deleteTodo = action(async (id: number) => {
52
await api.deleteTodo(id)
53
})
54
0 commit comments