Skip to content

Commit 843fe0e

Browse files
authored
docs(use-submit): explicit encType (#10643)
1 parent fff84b5 commit 843fe0e

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
- andreiduca
1717
- antonmontrezor
1818
- appden
19+
- arjunyel
1920
- arnassavickas
2021
- aroyan
2122
- avipatel97

docs/hooks/use-submit.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ submit([
9999
The default behavior if you submit a JSON object is to encode the data into `FormData`:
100100

101101
```tsx
102-
submit({ key: "value" });
102+
submit({ key: "value", { encType: "application/x-www-form-urlencoded" });
103103
// will serialize into request.formData() in your action
104104
```
105105

0 commit comments

Comments
 (0)