We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c3bd215 + 636001e commit b703691Copy full SHA for b703691
1 file changed
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