Next.js 14 Server Actions | Everything you need to know!

preview_player
Показать описание


Resources used:

Timestamps
00:00 Intro
01:45 Installation
04:30 Prisma Setup
09:30 Create Server Actions
01:00:00 Deployment
Рекомендации по теме
Комментарии
Автор

you are excellent buddy , love from india

adarshrathi
Автор

That's really great you haave summorized many new concepts of next js. I think it would be great if you add somee info about disabling the button while saving/updating thee data. Although really really great conceptual video especially using a server component inside child component and it doesn't cause hydration

arshah
Автор

I'm enjoying this... more content boss

adenugbamicheal
Автор

Great video, but my problem is when I export the functions from "actions.ts", my "/better" page gives me this error: Error: Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".
<form action={function} className=... children=...>

debrauwermichael
Автор

Hi Marshal,
is there anything like server actions in Remixjs?
Which you think is better in Server Components between Remixjs and Nextjs?
Waiting for your kind reply...

zunnoorainrafi
Автор

How can I set the formData to an empty string after creating a new todo?

horacinis
Автор

Is server actions possible with separate backend ?

mdazimbabu
Автор

You spent 1h on explaining almost nothing

araz
Автор

i am facing an issue while updating my todo. in my case i am using another file todo/[id]/page.ts for updating my todo here the problem begings. i get the id of todo using params. and send the id to form using input type=hidden method. again i catch the id const todoid=formdata.get('id') as string and pass this id to prisma for updating it shows me error. because i am converting the id as string.

arshah