summaryrefslogtreecommitdiff
path: root/packages/integrations/react/server.js
diff options
context:
space:
mode:
authorGravatar Ben Holmes <hey@bholmes.dev> 2024-11-25 03:43:15 -0500
committerGravatar GitHub <noreply@github.com> 2024-11-25 08:43:15 +0000
commit14feaf30e1a4266b8422865722a4478d39202404 (patch)
treeb76568bcd947fe90947de0a222ef85161186b1e3 /packages/integrations/react/server.js
parent30c78ba306bf063d9be7e13834f7e97978879aec (diff)
downloadastro-14feaf30e1a4266b8422865722a4478d39202404.tar.gz
astro-14feaf30e1a4266b8422865722a4478d39202404.tar.zst
astro-14feaf30e1a4266b8422865722a4478d39202404.zip
Rename Action query param to _action (#12510)
* rename _astroAction to _action * changeset
Diffstat (limited to 'packages/integrations/react/server.js')
-rw-r--r--packages/integrations/react/server.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/packages/integrations/react/server.js b/packages/integrations/react/server.js
index 69b0a8e12..9c3c309cc 100644
--- a/packages/integrations/react/server.js
+++ b/packages/integrations/react/server.js
@@ -126,11 +126,7 @@ async function getFormState({ result }) {
* This matches the endpoint path.
* @example "/_actions/blog.like"
*/
- const actionName =
- searchParams.get('_astroAction') ??
- /* Legacy. TODO: remove for stable */ formData
- .get('_astroAction')
- ?.toString();
+ const actionName = searchParams.get('_action');
if (!actionKey || !actionName) return undefined;