The problem with server actions

  Рет қаралды 22,968

Ben Holmes

Ben Holmes

Күн бұрын

Пікірлер: 73
@igrb
@igrb 3 ай бұрын
This man is the greatest product person in history... the charisma, the charm, the technical expertise!
@jamesdim
@jamesdim Ай бұрын
I can't take you seriously without a turtleneck!
@austincodes
@austincodes 3 ай бұрын
Actions with a TRPC-like API! 😯🤯
@alexon2010
@alexon2010 2 ай бұрын
In the documentation in the Routes part of Astro, it is very conventional the way it is done in NEXT, I simply hate the applied convection, it completely takes away the freedom of customizing the url, I use Vitejs and React with react-router-dom, I was able to configure it smoothly routes like any-coisas.localhost:3000/ or any-coisas.localhost:3000/slug,,, this in astro is quite annoying to configure and I don't even know how the urlr prefix would be done, something like maria.localhost: 3000/home I like having the freedom to define my routes and not pass data through parameters in the url but control via state... This was the annoying part of Astro that I've seen so far
@vicentealmeida1336
@vicentealmeida1336 3 ай бұрын
Darn, the men not only makes good content, dunk memes on the community but manages to make insane actual production code in the process. Adopt me please
@bholmesdev
@bholmesdev 3 ай бұрын
Sorry this component does not accept children
@tyu3456
@tyu3456 3 ай бұрын
Ah you forgot to add the children prop in the types 😂
@svict4
@svict4 3 ай бұрын
​@@bholmesdevspat my coffee laughing 😂
@dei8bit
@dei8bit 3 ай бұрын
Astro comes to solve all the details that we like .
@nazarshvets7501
@nazarshvets7501 3 ай бұрын
Finally a framework which adds complete features and thinks about real developer scenarios. Not some half-backed ass shit figure out and get fucked features (I'm looking at you, nextjs)
@fathinfadhil
@fathinfadhil 3 ай бұрын
this is one aspect that i like when framework compete with each other, initially react introduce us to server action, then nextjs as an early adopter showed us how it could be implemented and what benefits it brings. then other framework (in this case astro) perfected the ideas and the implementation even more from what it learnt from nextjs. im curious as to what new things/ways the remix team will bring to the ecosystem. these framework will learn from other framework what works and what doesn't works and keep building upon those ideas, eventually innovating better and better ways to do things
@Danielo515
@Danielo515 3 ай бұрын
It looks wonderful except for the disgusting requirement of ZOD and that "safe" should be the default. People must understand that exceptions need to be... The exception
@bholmesdev
@bholmesdev 3 ай бұрын
I’m open to safe being the default! Seems most people reach for it in practice
@Danielo515
@Danielo515 3 ай бұрын
@@bholmesdev probably a getUnsafe is more clear and makes people think more about what it entails
@TalhaBalaj
@TalhaBalaj 3 ай бұрын
why im not subbed to you, lemme just fix that
@corscheid
@corscheid 3 ай бұрын
I love the spectacular millennial nerd memes
@hyperbolee1060
@hyperbolee1060 3 ай бұрын
Holy fuck man now this is content
@jocdiazm
@jocdiazm 3 ай бұрын
Ben is on 🔥 lately
@huntmast
@huntmast 3 ай бұрын
Well well well what's up with the intro? hahahaha well done!
@QubitGlobe
@QubitGlobe 3 ай бұрын
Man I live these kind of formats! good luck with that 😆
@AndresJimenezS
@AndresJimenezS 3 ай бұрын
Astro Will supports other schema libraries like valibot or effect/Schema?
@latch909
@latch909 3 ай бұрын
Wild... I gonna be trying this with a few endpoints I'm currently rolling for course enrolments and stripe
@zanec7202
@zanec7202 Ай бұрын
This is the best video on KZbin No questions asked.
@shaked1233
@shaked1233 3 ай бұрын
This channel should really have much more subscribers
@Ben-rx5bx
@Ben-rx5bx 3 ай бұрын
Great vid man, I would LOVE to know what vscode theme your using!!!
@bholmesdev
@bholmesdev 3 ай бұрын
Thanks! It's Astro's own Houston theme marketplace.visualstudio.com/items?itemName=astro-build.houston
@MrJfergs
@MrJfergs 3 ай бұрын
This might not be the most relevant place to place this concern but I have been working with astro and really enjoying it... BUT when using it with a headless CMS (which most astro sites will have) It is not very straight forward to set up a live preview or visual editing, because of the nature of SSG it seems like this is either only possible using CSR or SSR and then having to separate deploys for previews (SSR) and one for the prod site (SSG). So my maybe this is better to ask of the CMS companies to make a process to set up live editing without this level of friction? Anyways if anyone knows a way around this, or have dealt with this before let me know. I am using Sanity currently but an example with any headless CMS would be fine. Seems like once again SSR is pretty much required to do useful things.
@bholmesdev
@bholmesdev 3 ай бұрын
This has definitely come up! Vercel is the only host I've seen "solve" this with a dedicated draft mode. Otherwise, I agree we could have some sort of SSR-only-in-preview setup docs.astro.build/en/guides/integrations-guide/vercel/#excluding-paths-from-caching
@ismailzahhar
@ismailzahhar 2 ай бұрын
How old Are you ? Good explanation 👏👏
@infiniteloop1709
@infiniteloop1709 3 ай бұрын
Absolute legend!
@thegrumpydeveloper
@thegrumpydeveloper 3 ай бұрын
Haha fun way to do this. I like the dev event style.
@NipunaGunathillake
@NipunaGunathillake 2 ай бұрын
How does the progressive enhancement work here? Does astro setup a form action when pre-rendering the page?
@bholmesdev
@bholmesdev 2 ай бұрын
When using React 19: all form actions will fallback to the server, and reload the page with new data. Progressive enhancement just works (TM) When using other frameworks: you can pass an action directly to a form's `action` attribute. This will add a little ?queryParam to tell the server which action to call for progressive enhancement
@simonswiss
@simonswiss 3 ай бұрын
No Chick-fil-A sauce?!
@hicoop
@hicoop 3 ай бұрын
Awesome video - earned a sub. Very rarely do you see content this fun in the advanced tech world
@avidcaster
@avidcaster 3 ай бұрын
let num = isNaN(+str) ? 0 : +str;
@sonofdarvin
@sonofdarvin 3 ай бұрын
Meanwhile php still paying the bills of deva since ages
@patrickjreid
@patrickjreid 3 ай бұрын
I am moderately new as a dev... a few years. I have never found a use case to make php worth it... yeah, it's in a lot of legacy code... but I can't see why someone would reach for it first anymore.
@shimadabr
@shimadabr 3 ай бұрын
@@patrickjreid Take a look at Laravel + Inertia + {insert your JS framework}. All this back-end + front-end glue code problem (and front-end routing) is basically solved.. It's pretty awesome. PHP + Laravel has a great ecosystem and the community is pretty alive, PHP is not only legacy systems and Wordpress anymore
@buzzeins
@buzzeins 28 күн бұрын
😂 Ben, you are my hero!
@SeanLazer
@SeanLazer 3 ай бұрын
This is insane
@seannewell397
@seannewell397 3 ай бұрын
minecraft mentioned lfgo
@GuillermoFedericoMorton
@GuillermoFedericoMorton 3 ай бұрын
this is amazing
@kasper_573
@kasper_573 3 ай бұрын
I wish safe was the default and unsafe existed as escape hatch
@bholmesdev
@bholmesdev 3 ай бұрын
I've heard that a few times! Also find myself using .safe more time than not. I think flipping to the default and adding an orThrow() for the alternative is a good change
@afuzzybearsyoutubechannel2812
@afuzzybearsyoutubechannel2812 3 ай бұрын
💚🔥💚🔥💚🔥💚🔥💚🔥
@powerigniter6260
@powerigniter6260 3 ай бұрын
how about determinate progress by uploading file can we use it in server action?
@SPAHI43
@SPAHI43 3 ай бұрын
I always wanted to make a presentation exactly in this style at my job, I'm glad someone had the same idea
@isaacjon
@isaacjon 3 ай бұрын
so what is your choice when it comes to javascript frameworks Ben?
@StingSting844
@StingSting844 3 ай бұрын
What a great fucking intro dude. Unbelievable 😍
@cb73
@cb73 3 ай бұрын
How do you not have over a million subscribers??
@alvarocastillocorrea2610
@alvarocastillocorrea2610 3 ай бұрын
Whenever you present something everybody learn it immediately haha, really nice video 🙌🏻
@Luisllaboj19
@Luisllaboj19 3 ай бұрын
What is your VS code theme? :p
@JavArButt
@JavArButt 3 ай бұрын
i think i fell in love with the astro corp
@luizgarciaaa
@luizgarciaaa 3 ай бұрын
Cloudflare is far from being the cool kid on the block..
@bholmesdev
@bholmesdev 3 ай бұрын
I'd beg to differ kzbin.info/www/bejne/lZXXqox6rK10f8U
@ederolima
@ederolima 3 ай бұрын
Love the Vsauce references
@aarondfrancis
@aarondfrancis 3 ай бұрын
vv good video!
@bholmesdev
@bholmesdev 3 ай бұрын
vv much appreciate that!
@snivels
@snivels 3 ай бұрын
gooch()
@michaelneumair
@michaelneumair 3 ай бұрын
Really nice!
@zotoavinaandriamanamihaga6661
@zotoavinaandriamanamihaga6661 3 ай бұрын
This is actually fire !!!!
@stianmaurstad
@stianmaurstad 3 ай бұрын
😂
@zenpool
@zenpool 3 ай бұрын
Cornier than @t3dotgg's hair (the intro that is) 😂
@bhuvya11
@bhuvya11 3 ай бұрын
How you settings in top of the vs code 🥹🥹🥹
@Ibrahim-fh6kv
@Ibrahim-fh6kv 3 ай бұрын
I find Astro Design terrible, I will stick with Next.js which is industry standard SSR
Astro Actions: the missing server action library
19:28
Astro
Рет қаралды 12 М.
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 82 М.
escape in roblox in real life
00:13
Kan Andrey
Рет қаралды 92 МЛН
The day of the sea 😂 #shorts by Leisi Crazy
00:22
Leisi Crazy
Рет қаралды 2,1 МЛН
pumpkins #shorts
00:39
Mr DegrEE
Рет қаралды 14 МЛН
Why you SHOULD deploy to the edge
12:06
Ben Holmes
Рет қаралды 54 М.
React + Servers = Confusion
20:30
Theo - t3․gg
Рет қаралды 42 М.
🏝️ The Server Islands hype is real!
15:11
Coding in Public
Рет қаралды 8 М.
The First Post-React Framework Just Launched
20:46
Theo - t3․gg
Рет қаралды 110 М.
The Problem with React Server Actions
9:45
Josh tried coding
Рет қаралды 20 М.
Why use Type and not Interface in TypeScript
14:12
ByteGrad
Рет қаралды 207 М.
Choosing between SSR, SSG, and dynamic rendering in Astro
12:19
Coding in Public
Рет қаралды 17 М.
Elian van Cutsem - All Things Astro - DevWorld 2024
20:33
JSWORLD Conference
Рет қаралды 1,1 М.
escape in roblox in real life
00:13
Kan Andrey
Рет қаралды 92 МЛН