-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
server:defer Causes Astro.getActionResult to Fail #12371
Comments
I am seeing this log in dev. I removed server:defer from your reproduction and I still see the same log so it does not seem to be a server islands related issue. |
HI @apatel369 could you please run https://stackblitz.com/edit/withastro-astro-b6b86s?file=src%2Fpages%2Findex.astro localy cause on stackblitz there is an issue with getting Astro.clientAddress and its unpossible to reproduce this error |
Ya, have ran it locally and got the result I reported earlier.
…On Tue, Nov 5, 2024 at 6:21 AM Paweł Król ***@***.***> wrote:
HI @apatel369 <https://github.com/apatel369> could you please run
https://stackblitz.com/edit/withastro-astro-b6b86s?file=src%2Fpages%2Findex.astro
localy cause on stackblitz there is an issue with getting
Astro.clientAddress and its unpossible to reproduce this error
—
Reply to this email directly, view it on GitHub
<#12371 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AH7EZBEBBKPKLSVOFRBN4RDZ7CSZZAVCNFSM6AAAAABRESYRJWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJWHEYDQMRTGI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
i ve changed stackblitz a bit now prerender is set to false and bug i described is occurring |
Are the delays in the stackblitz required for the bug to occur? |
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
I’m encountering an issue with Astro’s server:defer. Specifically, when applying server:defer to the component below, the function Astro.getActionResult(actions.testAction) doesn't work as expected and fails to return an error if one occurs:
Within the component, the following function is used:
const result = Astro.getActionResult(actions.testAction);
Issue: The function does not execute as intended, and any errors are not returned or displayed.
What's the expected result?
I expect Astro.getActionResult to properly execute and, in cases of failure, to return an error message that can be handled.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/withastro-astro-b6b86s?file=src%2Fpages%2Findex.astro
Participation
The text was updated successfully, but these errors were encountered: