Тёмный

Astro Actions (First Look!) 

Coding in Public
Подписаться 44 тыс.
Просмотров 4,4 тыс.
50% 1

Join the early preview for my course! learnastro.dev
Astro (server) Actions help you write type-safe backend functions you can call from anywhere. Here's a first look at this new experimental feature!
🔗 Key Links 🔗
- Github: github.com/coding-in-public/a...
---------------------------------------
🔗 Additional Links 🔗
- docs.astro.build/en/reference...
- github.com/withastro/roadmap/...
---------------------------------------
📹 Related Videos 📹
- Astro DB: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-yq1uD3pjhM.html
---------------------------------------
🎨 VSCode Theming
- Font: Cascadia Code: github.com/microsoft/cascadia...
- Theme: marketplace.visualstudio.com/...
- Icons: marketplace.visualstudio.com/...
---------------------------------------
🌐 Connect With Me 🌐
- Website: codinginpublic.dev
- Blog: chrispennington.blog
- Twitter: / cpenned
- Patreon: / coding_in_public
- Buy Me a Coffee: www.buymeacoffee.com/chrispen...

Хобби

Опубликовано:

 

9 май 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 23   
@bholmesdev
@bholmesdev 28 дней назад
Fantastic demo! Glad this simplified your code so much. Made a note that the "failed to validate" throw message could include the error messages for debugging. Also, console ninja is SO COOL
@CodinginPublic
@CodinginPublic 28 дней назад
Thanks for the great tool! I know there's been so much into the crafting of the experience. Excited to see how it continues to develop! And totally agree about console ninja :)
@JamesQQuick
@JamesQQuick 25 дней назад
What a great overview. Thanks so much for this!
@CodinginPublic
@CodinginPublic 24 дня назад
Thanks so much, James! That’s so kind!
@ceralguy85
@ceralguy85 7 дней назад
Great demo, the Astro actions is a very cool feature, thank you for sharing this content, keep it up with the great content.
@jamesdim
@jamesdim 28 дней назад
Thanks for covering these new features!
@CodinginPublic
@CodinginPublic 28 дней назад
Yeah, just had a couple of hours to play with it yesterday, but seems really cool!
@jamesdim
@jamesdim 28 дней назад
@@CodinginPublic Definitely! I hope it goes stable soon!
@jjaimealeman
@jjaimealeman 28 дней назад
​@@jamesdimgiven the speed of the Astro Dev Team - I wouldn't be surprised if it got stable very very soon!!! 😎👍
@danielgillett370
@danielgillett370 27 дней назад
Excellent videos! Keep doing what you're doing. I'm a big fan! I'm on your course as well. It's very good. thank you. If you don't mind; Do you think Astro could be used as a production unit to spit out static sites.
@WillDelish
@WillDelish 27 дней назад
Here is the comment pointing out in the last name error message, ye put “first name” 🤓 Very cool demo! Astro is growing so fast in features, I can’t keep up.
@CodinginPublic
@CodinginPublic 24 дня назад
lol didn’t notice that!
@user-qr1ny5de4r
@user-qr1ny5de4r 21 день назад
Thanks for video! But I still have one question: how to use Astro global object in server actions? For example, action for register new user: I want to set cookie (Astro.cookies.set(...)) and redirect user to profile page (Astro.redirect('/profile')), when action adds a new record to DB. How can I do that? 🤔
@CodinginPublic
@CodinginPublic 21 день назад
If I understand it correctly, it’s just creating a POST endpoint for you. So you should be able to update your db in the function and then set cookies and redirect all from that action file? I can play around with this today if I think about it.
@user-bn5eb9um4x
@user-bn5eb9um4x 28 дней назад
Wonder if this can return multiple error messages after submit a large form?
@CodinginPublic
@CodinginPublic 28 дней назад
Yep :)
@404-not-found-service
@404-not-found-service 19 дней назад
wwoooww
@CodinginPublic
@CodinginPublic 19 дней назад
Pretty cool, right!?
@404-not-found-service
@404-not-found-service 19 дней назад
@@CodinginPublic It's great, I'll leave sub and so on, I like Astro and I'm learning it, there is very interesting content on your channel about it so I'll be here more often, I hope to see more new things from Astro, greetings and much success!
@user-bn5eb9um4x
@user-bn5eb9um4x 28 дней назад
Can I don't use Z?
@CodinginPublic
@CodinginPublic 28 дней назад
I think you need to, but that's also kind of the core experience? So if you don't want to use zod to validate, I'd just use something else?
@bholmesdev
@bholmesdev 28 дней назад
You can! If you omit the “input” option, you get the plan FormData object to do whatever you want. But as Chris mentioned, you won’t get that clean isInputError utility for error messages. It’ll be more to do yourself
@user-bn5eb9um4x
@user-bn5eb9um4x 26 дней назад
@@bholmesdev Ah, thanks for your work on this. For now, I'm still relying on vanilla JavaScript for all forms.
Далее
Laravel + Livewire todo app (and so much more)
16:41
Просмотров 29 тыс.
Dynamic API Endpoints in Astro
30:59
Просмотров 9 тыс.
Which one is the best? #katebrush #shorts
00:12
Просмотров 3,2 млн
Coaches247.com DEMO
13:34
Просмотров
The Story of Astro DB
11:27
Просмотров 9 тыс.
Astro View Transitions Overview
22:28
Просмотров 1,6 тыс.
Every React Concept Explained in 12 Minutes
11:53
Просмотров 377 тыс.
HTMX and Astro Are An Amazing Combo!
17:50
Просмотров 6 тыс.
React Compiler: In-Depth Beyond React Conf 2024
15:16
Is remix any good?  Let's try it out!
28:55
Просмотров 13 тыс.
(FINALLY!) Email for Developers
28:19
Просмотров 105 тыс.
HTML Templates Instead Of Reactivity | Prime Reacts
12:42
ПАЦАНСКИЙ ТЮНИНГ НА ВАЗ #shorts
0:56
Ваше мнение ?
0:40
Просмотров 4,5 млн
ДОМАШНИЙ КВАС
0:36
Просмотров 3,5 млн
ДОМАШНИЙ КВАС
0:36
Просмотров 3,5 млн