Skip to content

Commit

Permalink
docs(use-submit): explicit encType (#10643)
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunyel committed Jun 26, 2023
1 parent fff84b5 commit 843fe0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- andreiduca
- antonmontrezor
- appden
- arjunyel
- arnassavickas
- aroyan
- avipatel97
Expand Down
2 changes: 1 addition & 1 deletion docs/hooks/use-submit.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ submit([
The default behavior if you submit a JSON object is to encode the data into `FormData`:

```tsx
submit({ key: "value" });
submit({ key: "value", { encType: "application/x-www-form-urlencoded" });
// will serialize into request.formData() in your action
```
Expand Down

0 comments on commit 843fe0e

Please sign in to comment.