From a7712f27002cbedbdf145787216b9fc2f04fd186 Mon Sep 17 00:00:00 2001 From: Tim Whitbeck Date: Fri, 3 Dec 2021 20:00:19 -0500 Subject: [PATCH] (docs): add missing param in docs for `useSubmit` (#540) * add missing param in docs for `useSubmit` * sign CLA --- contributors.yml | 1 + docs/api/remix.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/contributors.yml b/contributors.yml index 7f2c8eaec63..fb6f7f4e46b 100644 --- a/contributors.yml +++ b/contributors.yml @@ -60,6 +60,7 @@ - skube - stephanerangaya - tjefferson08 +- twhitbeck - veritem - VictorPeralta - zachdtaylor diff --git a/docs/api/remix.md b/docs/api/remix.md index f102161d34f..f5bc37d15c7 100644 --- a/docs/api/remix.md +++ b/docs/api/remix.md @@ -380,7 +380,7 @@ export async function loader() { await getUserPreferences(); } -export async function action() { +export async function action({ request }) { await updatePreferences(await request.formData()); return redirect("/prefs"); }