-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
fix: add wait to code sample #10544
fix: add wait to code sample #10544
Conversation
When calling an action from a server endpoint, an `await` is required or `data` and `error` will be `undefined`.
✅ Deploy Preview for astro-docs-2 ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify site configuration. |
Lunaria Status Overview🌕 This pull request will trigger status changes. Learn moreBy default, every PR changing files present in the Lunaria configuration's You can change this by adding one of the keywords present in the Tracked Files
Warnings reference
|
Hello! Thank you for opening your first PR to Astro’s Docs! 🎉 Here’s what will happen next:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for catching this @justinnoel and taking the time to add the fix. And welcome to Team Docs 🥳 (But, how is this your first contribution?? 😄 )
I only built a few simple things with Astro all those years ago. Then, I spent a lot of time with Hono. Now, I'm back to dabbling with Astro. It's amazing what y'all have done with it!!! |
* i18n(fr): Update `guides/actions.mdx` from #10544 * i18n(fr): Update `guides/actions.mdx` from #10501 * "ctx" to "context" from #10304 Co-authored-by : Armand Philippot <[email protected]>
Description
When calling an action from a server endpoint, an
await
is required ordata
anderror
will beundefined
.