Server Actions: Understanding "use server" & "server only"

Server Actions: Understanding "use server" & "server only"

Ras Mic

3 недели назад

2,975 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@NizzyABI
@NizzyABI - 01.10.2024 03:00

great vid!

Ответить
@mahletabebe140
@mahletabebe140 - 01.10.2024 05:35

Amazing video!

Ответить
@ronitgurjar5747
@ronitgurjar5747 - 01.10.2024 05:36

ohhh....i did remember reading that on docs, but i did the same mistake you talked about...hmm, thanks man🔥🔥nextjs security 101

Ответить
@0xAquaWolf
@0xAquaWolf - 01.10.2024 07:01

After building 7437 side projects is FOUNDER MODE!

thanks for the explainer i was a bit fuzzy on the difference between them as well.

Ответить
@CodeZakk
@CodeZakk - 01.10.2024 07:41

yeah great video but i've never used or heard about server-only. i use use server and use-client always. in what situation is server-only useful??

Ответить
@shoe7393
@shoe7393 - 01.10.2024 07:46

for the algorithm

Ответить
@EmblazNOR
@EmblazNOR - 01.10.2024 09:16

Great content! Comment for the algorithm

Ответить
@SweepAndZone
@SweepAndZone - 01.10.2024 16:11

Ras!! Bro i love your video's. Just wanted to let you know i got an offer finally after 2 years of work. Still finishing my bachelors as well at WGU. The titles i hold at the new job are software developer/ETL developer.

Going to be working with a large amount of new Microsoft tools! Company is worth around 2B. Private held as well. Its a local interstate grocery outlet/retail.

Excited to be able to gain more proficiency with NEXTjs on the side, your videos help that process be easier

Ответить
@Kingaserek
@Kingaserek - 01.10.2024 18:47

it was a good overview, very informative. My question is , if server actions ("use server") are not to be used for data access, then what are the other major uses for it ?

Ответить
@andreimocanu8732
@andreimocanu8732 - 01.10.2024 23:17

do you use server only often? in what cases do you use them? thanks

Ответить
@alantelo1877
@alantelo1877 - 02.10.2024 00:12

i dont play the video yet just save to see later, but i give it like because the video will be SUPER !

Ответить
@cabrelelvis
@cabrelelvis - 02.10.2024 12:33

always great vid thx

Ответить
@tedyp3k
@tedyp3k - 02.10.2024 18:47

It's not just for POST requests bro. server actions are just API under the hood.. client <-> server

Ответить
@codingcode69
@codingcode69 - 04.10.2024 01:58

Amazing vid. Yeah and by default all next js components are server Components the benefit of having import server only is to avoid accidentally running that component on the client because at the present state of next it will only fire an error in the console but on in the page itself so Its not mandatory to mark a RSC and import seevee only just helps reducing risk of that

Ответить
@ninjagaskin
@ninjagaskin - 04.10.2024 05:10

Can you use a server action to then call a server only function?

is it still save to store env variables inside the “use server” action as long as they’re not props being passed from the client ?

Ответить
@TonyEduardo1
@TonyEduardo1 - 06.10.2024 19:07

More vids like this fam

Ответить
@avgspacelover
@avgspacelover - 16.10.2024 19:13

great video man, keep em coming

Ответить