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
Copy file name to clipboardExpand all lines: src/routes/solid-start/guides/actions-and-mutations.mdx
+9-9
Original file line number
Diff line number
Diff line change
@@ -35,32 +35,32 @@ export default function Page() {
35
35
36
36
When invoked in a form, the action automatically receives the [`FormData`](https://developer.mozilla.org/en-US/docs/Web/API/FormData/FormData) object. You can extract the field data using the native `FormData` methods.
37
37
38
-
If your action accepts typed data, you can use the `with` method to pass custom data to the action:
38
+
### Passing additional arguments
39
+
40
+
When you need to pass additional arguments to your action, you can use the `with` method:
Note that the action takes a `string` as its first parameter rather than a `FormData`.
63
-
64
64
## Showing pending UI
65
65
66
66
To display a pending UI while the action is being executed, you can use the [`useSubmission`](/solid-router/reference/data-apis/use-submission) primitive:
0 commit comments