Тёмный

Next.js 14 - Server Actions TUTORIAL | Type Safety, Error Handling, Pending States 

developedbyed
Подписаться 939 тыс.
Просмотров 34 тыс.
50% 1

Getting close to finishing the Next 14 Course, stay tuned for the update.
developedbyed....
Resources ⛏️
nextjs.org/doc...
github.com/The...
🛴 Follow me on:
Twitter: / developedbyed
Github: github.com/dev...
Dope tracks 🔥
Shofel - Balcony chll.to/8d7e18be
#react #nextjs

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

 

26 сен 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 68   
@TheEdoRan
@TheEdoRan 8 месяцев назад
Thank you so much Ed for featuring next-safe-action! Very glad you find it useful.
@developedbyed
@developedbyed 8 месяцев назад
Let me know if you want me to make a demo for optimistic updates as well 👍👍
@Logicmontana
@Logicmontana 8 месяцев назад
AM YOUR BIGGEST FUN , THANK YOU GUIDANCE IN MY WEBDEV JOURNEY
@willystain9870
@willystain9870 8 месяцев назад
please show us the way
@sureshmutluru4532
@sureshmutluru4532 8 месяцев назад
Yes please
@poizonncs8264
@poizonncs8264 8 месяцев назад
Yes yes yes
@alexandersanchez9242
@alexandersanchez9242 8 месяцев назад
Yes
@Logicmontana
@Logicmontana 8 месяцев назад
Hey there ED That's fantastic news! I'm really happy to hear that you found this project helpful. It's always a good idea to have server actions that prioritize type safety and error handling. I must say, the demonstrations you shared are really informative and highlight some key aspects of server actions. It's great to see that Next.js 14 is bringing in some handy features to manage loading, errors, and success. Thank you so much for sharing this valuable information!
@Logicmontana
@Logicmontana 8 месяцев назад
@marvinkr
@marvinkr 8 месяцев назад
Glad to see you back! Saw you switch from tRPC to Server Actions in your repo. Is it due to the "experimental" stage of tRPC with server side calls?
@loganw9019
@loganw9019 28 дней назад
@developedbyed I purchased your 2024 next js course. I am at the server actions example.. in your example the input of the form will clear on submit... when I click submit my input does not clear... the revalidatePath works to have it show up on the mapped Posts... except my input does NOT go blank like your input does in the example.. whats the deal with that? and what is the solution??
@dummymail2495
@dummymail2495 8 месяцев назад
When will your next14 course be published?❤
@BeepBoop2221
@BeepBoop2221 8 месяцев назад
I hope you are well Ed
@JohnBuildWebsites
@JohnBuildWebsites 8 месяцев назад
Any idea why I might keep getting a fetch error when using `next-safe-action` saying "TypeError: Cannot redefine property: $$id". Works fine doing a raw db.insert without next-safe-action
@stevebendersky2056
@stevebendersky2056 Месяц назад
does type-safe-zone works for server actions that integrate with api through fetch request? my backend is seperate
@Lovedeep555
@Lovedeep555 Месяц назад
I appreciate your videos. However, if you copy and paste content, please take the time to explain the concepts. For instance, if someone watches a video expecting to learn about server actions but instead sees Zod validation stuff, it can be confusing. It's best to align the content with the video title. Overall, I really enjoy your videos, and I think you're awesome!
@doriandoussain1528
@doriandoussain1528 5 месяцев назад
Give it a shot work for heroine too, that's a double, nice shot
@mdsafikulislam9113
@mdsafikulislam9113 8 месяцев назад
Please make a full playlist of NextJS 14~!
@atifali3485
@atifali3485 8 месяцев назад
waiting for the course!!
@eca8799
@eca8799 5 месяцев назад
hello one question about min 6:15 , in my app the values look like this: type Ingredient = { name: string; purchasePrice: Prisma.Decimal; } and I'm having an error ("Only plain objects can be passed to Server Functions"), so I have to to do addIngredient(JSON.stringify(values)) in the onSubmit. and in the definition of the action, undo by doing JSON.parse(ingredientData). how would you deal with that without any additional package?
@sK4hsCz
@sK4hsCz 8 месяцев назад
thank you very much ed! :) you explained it so well, now i'm getting this rocked. thanks
@developedbyed
@developedbyed 8 месяцев назад
Rock on!
@sudoalex
@sudoalex 8 месяцев назад
Welcome back Ed!
@neeshsamsi
@neeshsamsi 8 месяцев назад
I've really been struggling with the prettier endlessly loading 11:08. Have you found a fix. I pruned unnecessary extensions and other things thinking there was too many extensions but it still happens often.
@mihirkhode8289
@mihirkhode8289 8 месяцев назад
thanks, for introducing new packages. 👍
@tnnz9920
@tnnz9920 8 месяцев назад
Sir is possible to fetch API from external in server action? I always got status code 303 even its succesed
@adarshdalvi9772
@adarshdalvi9772 8 месяцев назад
I'm new to nextjs, consider me dumb. Even we don't write 'use server' on top of the file , it automatically becomes a server thing? like we only need to decalre 'use client' if it's a client component, otherwise it's a server thing by default?
@rodneypaul9430
@rodneypaul9430 8 месяцев назад
yes next js components are server components by default use the 'use server' when writing server actions not components server actions are just like functions which interact with the db directly without apis
@rastikrastikk2289
@rastikrastikk2289 7 месяцев назад
Make a lot next js project
@Dhanushsaji
@Dhanushsaji 8 месяцев назад
What's the benefit using server actions over API?
@quoclam7140
@quoclam7140 8 месяцев назад
Can you make a video of how to do shadcn without typescript and nextjs?
@midlajj
@midlajj 8 месяцев назад
Can you please provide the source code of last product adding form shown in this video...?
@massinskendoul9640
@massinskendoul9640 8 месяцев назад
Amazing thank u Deved
@developedbyed
@developedbyed 8 месяцев назад
yeah no worries! always around 👍
@massinskendoul9640
@massinskendoul9640 8 месяцев назад
​@@developedbyed and we are always here to see what you bring us, in Deved we trust. 😁
@Zaromir
@Zaromir 8 месяцев назад
My body is still ready
@abubakarafzal9707
@abubakarafzal9707 2 месяца назад
thank you
@OleksandrPitsak
@OleksandrPitsak 2 месяца назад
Thanks
@ShanakaDushyantha
@ShanakaDushyantha 5 месяцев назад
Hey I got a challange for you, (Actually I faced the same & no anyware to go 😭 😂), Need to build a login & perform Remember me using access Token & Refresh Token which is provided by third-party backend server Use: Next Js (App directory: latest) Next-Auth
@marvelousadesina4673
@marvelousadesina4673 8 месяцев назад
HE'S BAAACK!!!!!
@mhraihan7422
@mhraihan7422 8 месяцев назад
great one
@sohamdebnathpopo
@sohamdebnathpopo 6 месяцев назад
so many packages. would prefer long(er) lines of code rather than using lots of packages. IMO.
@24pratikbhagwat68
@24pratikbhagwat68 2 месяца назад
Hey what's the theme name of vs code
@Logicmontana
@Logicmontana 8 месяцев назад
SECIND ONE HERE
@skorotkiewicz
@skorotkiewicz 8 месяцев назад
You need to start using Prisma for database with postgres.
@developedbyed
@developedbyed 8 месяцев назад
Prefer drizzle over prisma 😊
@XeKT0r
@XeKT0r 8 месяцев назад
AWSEMOE !!
@mehmethanifierenler3612
@mehmethanifierenler3612 Месяц назад
thanks
@designforge_studio
@designforge_studio 8 месяцев назад
can you sponser me two 8gb ddr4 ram vscode can keep up
@dahliasan
@dahliasan 8 месяцев назад
what is the difference between this method vs using react query?
@liendwin
@liendwin 8 месяцев назад
react query is used for apis and next-safe actions is used for server actions, they pretty much work the same though
@s3nTer
@s3nTer 8 месяцев назад
​@@liendwinweb dev field is a mess, glad I moved away from it. Those mf keep reinventing wheel over and over again 😅
@brienaustinclayton
@brienaustinclayton 8 месяцев назад
Server actions are more advantageous right ?​@@liendwin
@Devlicious-m3r
@Devlicious-m3r 7 месяцев назад
WOW
@Gyurmatag
@Gyurmatag 8 месяцев назад
Source code?
@BrantK147
@BrantK147 8 дней назад
Dang, so many tools I don't know 😭
@0xinconnu
@0xinconnu 5 месяцев назад
8:35
@theDanielJLewis
@theDanielJLewis 8 месяцев назад
Can someone please vacuum his mic pop filter? 🤣
@shahidullahmuffakir668
@shahidullahmuffakir668 8 месяцев назад
Can i watch it without getting drunk?
@devoxygen7395
@devoxygen7395 8 месяцев назад
@poizonncs8264
@poizonncs8264 8 месяцев назад
Man you are being lazy, people are waiting for your videos, including me 😅
@BeepBoop2221
@BeepBoop2221 8 месяцев назад
I hope you are well Ed
@DamiduShalinda
@DamiduShalinda 8 месяцев назад
Where is the code links?
@Adrian_Galilea
@Adrian_Galilea 8 месяцев назад
Can you drop the repo? :)
Далее
10 common mistakes with the Next.js App Router
20:37
Просмотров 215 тыс.
Brilliant Budget-Friendly Tips for Car Painting!
00:28
Implement Clean Architecture in Next.js
53:07
Просмотров 22 тыс.
React + Servers = Confusion
20:30
Просмотров 42 тыс.
Next.js 15 Ruins Caching Even More
13:56
Просмотров 46 тыс.
How To Use Next.js 14 Server Actions
21:06
Просмотров 25 тыс.
Fetching Data Doesn't Get Better Than This
6:58
Просмотров 118 тыс.