From 486c1c343439b021bb92fddb537a5d1ac4b82a19 Mon Sep 17 00:00:00 2001 From: G-OD <36040147+g-od@users.noreply.github.com> Date: Sun, 14 Dec 2025 13:15:06 +0000 Subject: [PATCH] fix: Pass in params into action --- packages/cli/templates/defaults/app/route-templates/html.tsx | 3 ++- .../cli/templates/react-router/app/route-templates/html.tsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/cli/templates/defaults/app/route-templates/html.tsx b/packages/cli/templates/defaults/app/route-templates/html.tsx index 7a3e0d6e371f..cfd5a76c866b 100644 --- a/packages/cli/templates/defaults/app/route-templates/html.tsx +++ b/packages/cli/templates/defaults/app/route-templates/html.tsx @@ -210,6 +210,7 @@ const getRequestHost = (request: Request): string => export const action = async ({ request, context, + params, }: ActionFunctionArgs): Promise< { success: true } | { success: false; errors: string[] } > => { @@ -220,7 +221,7 @@ export const action = async ({ const formData = await request.formData(); const system = { - params: {}, + params, search: {}, origin: url.origin, pathname: url.pathname, diff --git a/packages/cli/templates/react-router/app/route-templates/html.tsx b/packages/cli/templates/react-router/app/route-templates/html.tsx index 77ffc2f4b8c5..650ad6472342 100644 --- a/packages/cli/templates/react-router/app/route-templates/html.tsx +++ b/packages/cli/templates/react-router/app/route-templates/html.tsx @@ -209,6 +209,7 @@ const getRequestHost = (request: Request): string => export const action = async ({ request, context, + params, }: ActionFunctionArgs): Promise< { success: true } | { success: false; errors: string[] } > => { @@ -219,7 +220,7 @@ export const action = async ({ const formData = await request.formData(); const system = { - params: {}, + params, search: {}, origin: url.origin, pathname: url.pathname,