🔥 It's wild that Server Actions allow you to use prop values directly from the component. And you can easily modify/access req headers like cookies! So nice
@lydiahallie Server Actions should be used with form or could be button onclick for exemple?
@lydiahallie Does the function being declared inside the component vs outside matter to RSC at all? Besides having to pass the props you need as an argument. I'm assuming no?
@lydiahallie How does the network look like? Is it sending a Json via post? Or is it a raw form submit with a hidden input?
@lydiahallie Looks like @remix_run 👀
@lydiahallie I'm a bit confused… where is that `addItemToDb` function coming from? I don't see it in the imports.
@lydiahallie How's error handling work here? What if your cart Id isn't there?