diff options
author | 2024-11-25 03:43:15 -0500 | |
---|---|---|
committer | 2024-11-25 08:43:15 +0000 | |
commit | 14feaf30e1a4266b8422865722a4478d39202404 (patch) | |
tree | b76568bcd947fe90947de0a222ef85161186b1e3 /packages/integrations/react/server.js | |
parent | 30c78ba306bf063d9be7e13834f7e97978879aec (diff) | |
download | astro-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.js | 6 |
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; |