All 29 Next.js Mistakes Beginners Make

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.พ. 2025

ความคิดเห็น • 284

  • @ByteGrad
    @ByteGrad  8 หลายเดือนก่อน +11

    Hi, my latest course is out now (Professional React & Next.js): bytegrad.com/courses/professional-react-nextjs -- I'm very proud of this course, my best work!
    I'm also a brand ambassador for Kinde (paid sponsorship). Check out Kinde for authentication and more bit.ly/3QOe1Bh

    • @niconel7659
      @niconel7659 7 หลายเดือนก่อน +2

      Do you offer regional discounts like some other authors, taking in account students country? (like South Africa with a very weak Rand to the US Dollar)

    • @kumardeepam
      @kumardeepam 6 หลายเดือนก่อน

      @@niconel7659 also, for India?

  • @sedmidivka
    @sedmidivka 9 หลายเดือนก่อน +250

    you are THE ONLY ONE who actually is trying to explain this on examples which aren't complete copies of the documentation together with the same, exactly the same, explanation. I'm so thankful I can't even express this properly in words, it's very frustrating to look for some explanations and just getting these videos with the exact documentation copy paste with 0 info over and over and over again...... man

    • @ByteGrad
      @ByteGrad  9 หลายเดือนก่อน +16

      Thanks!

    • @mangoherpson
      @mangoherpson 9 หลายเดือนก่อน +3

      Agreed

    • @olusanyaolamide9764
      @olusanyaolamide9764 9 หลายเดือนก่อน +3

      Byte Grad is super smart, another amazing video

    • @FendiFliperachi
      @FendiFliperachi 9 หลายเดือนก่อน

      Exactly

    • @rishibakshi2004
      @rishibakshi2004 7 หลายเดือนก่อน

      agreed agreed agreed❤

  • @KartikKKalia
    @KartikKKalia หลายเดือนก่อน +5

    this is best nextjs video.
    Majority of yt is filled with just basic tutorials and it's so hard to find videos like this.
    Everyone is discussing new Nextjs features instead of actually teaching about features used in Industry.

  • @devklepacki
    @devklepacki 6 หลายเดือนก่อน +14

    What I love about this video is how you go through each example and insert those "oh, and btw you can also do this this other way, and this will work a little different, which may or may not be better in your use case". That's always what lack in tutorials. Everyryone is teach only one, their, strict way, and if you try to deviate from that for an inch, then everything falls aparat, but they won't tell you that!

  • @EverNife
    @EverNife 7 หลายเดือนก่อน +26

    Well, this video alone is more valuable than most courses about Next.js.
    Almost all mistakes solved in this video are from real-life struggles and can easily take tons of hours to figure out how to solve them alone!
    Thank you for the amazing video!
    I was hesitant to upgrade to Next 15 because of these doubts I had about server/client components. This video helped me a lot. :D

  • @roguegoblin2407
    @roguegoblin2407 9 หลายเดือนก่อน +11

    I've been working with Nextjs for two years and you made me aware of so much mistakes I made in past projects. Great video.

  • @JustCode200
    @JustCode200 5 หลายเดือนก่อน +6

    This video felt like 10 minutes to watch. Improved many things in my current project because of you. Thank you

    • @farisfaikar_r
      @farisfaikar_r 4 หลายเดือนก่อน

      I watched the video for a bit and didn't realize I've watched it for 1 hour. Yes, it indeed felt like a 10 minute video XD

  • @riccohen6057
    @riccohen6057 15 วันที่ผ่านมา +1

    I just wanted to say thanks for creating such a great video on hydration issues and client/server component mixing in Next.js! I've been struggling with this concept for a while, but your video finally nailed it. I've been watching Next.js videos nonstop since Next.js 13, and yours was the one that finally made sense to me. I'm still on a tight budget right now, but your course is on my list. I've subscribed and am looking forward to checking out your other videos!

    • @ByteGrad
      @ByteGrad  15 วันที่ผ่านมา

      Enjoy!

  • @ZynthCode
    @ZynthCode 9 หลายเดือนก่อน +29

    This is gold, thank you. Well explained, especially the server/client component differences and woes, such as Hydration errors.
    Extra Side Note: I rarely, if ever, watch a 2h video tutorial in one go, so kudos for keeping it extremely relevant for Next.js devs :)

    • @ByteGrad
      @ByteGrad  9 หลายเดือนก่อน

      Glad it was helpful!

  • @jasonreid9267
    @jasonreid9267 4 หลายเดือนก่อน +2

    Way to get to the f'ng point on every one of these! I typically can't sit through long instructional videos...they're so often filled with fluff. I find myself skipping through them looking for actual content and (typically) giving up. But this was an easy 1hr and 45 to watch every single minute of. Hats off.

  • @Jiggisghoul
    @Jiggisghoul 11 วันที่ผ่านมา +2

    This video is absolutely masterpiece!! Thank you!!

  • @vladimir_dev
    @vladimir_dev 2 หลายเดือนก่อน +3

    This is pretty much becoming my favorite video on the internet right now

  • @hyperbrug9328
    @hyperbrug9328 9 หลายเดือนก่อน +13

    This is actually the #1 next js video for beginners. You cleared up so much of my confusion

    • @AjayRibadiya-v4d
      @AjayRibadiya-v4d 7 หลายเดือนก่อน

      "Insightful video! It's no mistake to say this is the #1 Next.js guide for beginners. Your comprehensive rundown cleared the fog surrounding many common misconceptions. Time to level up our digital marketing game with Semaphor analytics. Thank you!"

  • @yusufuysal.dev1
    @yusufuysal.dev1 25 วันที่ผ่านมา +1

    the amount of information in this video is purely gold, you are probably the best React/Nextjs instructor man, thank you so much for all of the efforts and time!

  • @skyy-v5o
    @skyy-v5o 5 หลายเดือนก่อน +1

    bro you are the one and only one kind of a teacher who has explained the concepts like a teacher teaches to kids , minimalistically yet on to the point , I will be buying your course , I am from India and even after the discount price is still high for me , I am gonna save and bring your react next course , please dont stop content like this , your explanations are best , also please start series like this for react and other , Also please start project series , i feel no other teacher can match the style when it comes to build complex apps on youtube , so please go ahead with projects tutorials.

    • @ByteGrad
      @ByteGrad  5 หลายเดือนก่อน

      Awesome, thanks!

  • @АлексейБатькович-з5т
    @АлексейБатькович-з5т หลายเดือนก่อน +1

    Ты молодец. Именно этой информации мне не хватало и именно её так тяжело найти на просторах интернета. Ты лучший

    • @АлексейБатькович-з5т
      @АлексейБатькович-з5т หลายเดือนก่อน

      Слушай, а это все понятно когда мы использует fetch и чистый next js. А что если мой сервер с базой данных находится не в проекте next js. А где то на другом сервере. Я обращаюсь к нему посредством rest api. Я пытаюсь прикрутить в свой next js проект tanstak query. Я думаю что это будет лучшим решением чем то что предлагает next js из коробки. Мне интересно твоё мнение.

  • @araggohnxd
    @araggohnxd 7 หลายเดือนก่อน +1

    this is not only the best nextjs video I've watched, it is also one of the best overall programming videos I've ever watched. I can't stress enough how useful this is. thank you so much!!!

  • @ritavdas7570
    @ritavdas7570 8 หลายเดือนก่อน

    This video is an absolute gem! 🌟 The explanation of the Next.js app router and pages router differences was incredibly clear and helpful. The examples provided on server components and client components really made it easy to understand where to use each. I especially appreciated the deep dive into hydration errors and how to handle them. Keep up the great work! 🚀👏

  • @caldog20
    @caldog20 7 หลายเดือนก่อน +1

    After the first few sections, I ended up watching the entire video. You do an excellent job of providing real world scenarios and examples on the topics, as well as explaining the alternative of your advice. Awesome work

  • @justincheong6159
    @justincheong6159 7 หลายเดือนก่อน +1

    I have seen quite a lot of NextJS videos on TH-cam and also courses from Udemy. This is the BEST so far. Practical examples to demonstrate the mistakes. And most importantly it rephrases those big terms we see in documentation in a layman way that beginner can understand. Thanks for the video

  • @arek9430
    @arek9430 5 หลายเดือนก่อน +1

    Such a quality content with so robust explanation and presentation. Not many creators do that. Thanks, it was pleasure to watch and learn from it.

    • @ByteGrad
      @ByteGrad  5 หลายเดือนก่อน

      Much appreciated!

  • @northerncoder
    @northerncoder 9 หลายเดือนก่อน +5

    Great video. I am only 20mins in and it has already cleared up server/client confusion I had while starting to work with Nextjs.

    • @ByteGrad
      @ByteGrad  9 หลายเดือนก่อน +2

      Nice!

  • @salkohajric6176
    @salkohajric6176 6 หลายเดือนก่อน +1

    GREAT VIDEO! Giving real world examples that are at the same time generic is best way to convey the knowledge. Even if I often read documentations and articles, I learned a lot of new things from this video and see some of my mistakes from the past, that I resolved but didn't know why was it resolved. THANK YOU for this!

  • @ansarqazi4377
    @ansarqazi4377 8 หลายเดือนก่อน +1

    I'm just around half way there in the video & feeling like I have watched hours long tutorial. Highly appreciate the content! Highly appreciate your efforts & knowledge! Bundle of thanks!

  • @jawyor-k3t
    @jawyor-k3t 4 หลายเดือนก่อน +1

    so much better than those vercel guys that literally do documentation voiceover as if people can't read

  • @rahulnag9582
    @rahulnag9582 9 หลายเดือนก่อน +1

    One of the best video on NextJS doubts which will only arise once you become expert in NextJS after completing FEW videos FEW projects.
    But your video is so amazing that if any dev will watch it completely will definitely become pro in NextJS and any confusion which used to come when we do large project will be cleared out after watching this,
    Thanks :)
    Much love from India.

  • @mahalingappabirajdar5285
    @mahalingappabirajdar5285 4 หลายเดือนก่อน +1

    This type of explanation I've never seen on youtube, once again thank you for your efforts.

  • @shashank.superone
    @shashank.superone 9 หลายเดือนก่อน +5

    Amazing! Awesome! Fabulous! You have explained ALL what all common confusions go on with NextJs. NextJs should include this video in their official guides and help/troubleshoot/Faqs docs. This cleared most of my doubts for which I was not finding a fitting resolutions together combined anywhere else. ❤ Thanks alot #ByteGrad

    • @ByteGrad
      @ByteGrad  9 หลายเดือนก่อน

      Thanks, enjoy!

    • @shashank.superone
      @shashank.superone 9 หลายเดือนก่อน

      ​@@ByteGrad One thing doubt remains, when I have to use header on all page, or authentications , how to make sure not all pages become dynamic rendered? U said middleware word, but that not explained. What is real solution?

    • @kaziprosper2229
      @kaziprosper2229 9 หลายเดือนก่อน

      Middleware is a special file you create at the root of your next js project. This file is where you put all your authentication logic. Just like loading, error, route and page files have a special meaning in next js, a middleware file would automatically be recognized by next js and would be run by next js before the routes you specify in the matcher of helper function written in your middleware file.

  • @LucaSapoW
    @LucaSapoW 5 หลายเดือนก่อน +1

    Just waiting for my CC turn to buy your course. You are , by far, the best teacher i ever had. Greetings from Brazil!

  • @vivekgupta6942
    @vivekgupta6942 4 หลายเดือนก่อน +1

    this video is the best out there, I'm happy that I found it, but sad that it took me so long to get to this golden gem. very nice work, hope you keep sharing your knowledge.

  • @wusswuzz5818
    @wusswuzz5818 8 หลายเดือนก่อน +1

    This was one of the best deliveries i have seen outside of dave gray. Will be picking up that course, and hoping it is delivered with the same clarity.

    • @ByteGrad
      @ByteGrad  8 หลายเดือนก่อน

      Awesome, enjoy!

  • @ritavdas7570
    @ritavdas7570 5 หลายเดือนก่อน +2

    Watch this video every once in a while because it's golden

  • @universalproblemsolver
    @universalproblemsolver 8 หลายเดือนก่อน +1

    Not even halfway through. AMAZING. I have learned some of the subtle dance between client and server. Thank you, I thought I was going crazy. Question about your course (React + Next): Do you provide a pattern of Client > Next Auth > Server > Database > Back to Client > Edit/Update/Upsert > Revalidate? Or something close? If not, can I request a paid consultation?

    • @ByteGrad
      @ByteGrad  8 หลายเดือนก่อน +1

      Hi, yes CRUD is part of the course

    • @universalproblemsolver
      @universalproblemsolver 8 หลายเดือนก่อน

      @@ByteGrad Cheers, new subscriber and purchasing course.

  • @konradmaocha6397
    @konradmaocha6397 3 หลายเดือนก่อน +1

    Thanks, I made exactly the most of the mistakes you are mentioning here. My problem with "use client" overuse was very painful, as I was getting 429 from the external service that I'm using for auth. The problem was, I was fetching data on the server side but the call went from client component, so through the middleware I had many requests on a single render of a all components, causing 429 on user check and token refresh. A tough lesson learned - I wish I’d seen your video sooner!

  • @AlecHalePletka
    @AlecHalePletka 8 หลายเดือนก่อน +2

    best NextJS video on TH-cam & it's not even close

  • @ztipsamme
    @ztipsamme 8 หลายเดือนก่อน

    Perfect timing! I'm currently on week 4 of learning Next.js and this video has been very helpful 🤓🙏🏼

  • @TANUJDARGAN
    @TANUJDARGAN 5 หลายเดือนก่อน +1

    It's funny cause I just made the mistake of using "use client" wherever I got an error just to get around it without actually understanding it and the first video I get recommended is yours, almost ironic. Thank you so much though this video saved so much time for me with my first project!

  • @AndriusLauFullstack
    @AndriusLauFullstack 9 หลายเดือนก่อน +1

    Nice overview! I have some experience with React and started learning NextJs. Currently, I'm building a full-stack app, and for a front-end I decided to use NextJs. So your video is a good reminder of which mistakes need to be avoided.

  • @tomasburian6550
    @tomasburian6550 3 หลายเดือนก่อน +1

    A lot has been learned here.
    Also love how you use TS along with the code. That's professional level.

  • @kertofinchi
    @kertofinchi 6 หลายเดือนก่อน +1

    wow man, you need to be ambassdor of vercel, a missile of bottom lines what a implicity sharp gzipped explaination worth every second congratz you pinned as top mentor on next js

  • @AliAchternaam
    @AliAchternaam 9 หลายเดือนก่อน +1

    You are the man! This channel is a gold mine for people learning NextJs. Can't praise and recommend you enough!!!

  • @osamasafwat9345
    @osamasafwat9345 6 หลายเดือนก่อน

    I haven't watched any Next js course. I have just read the documentation and watched your video and I think that I'm pro now. Thank you❤

  • @bribri-dy1te
    @bribri-dy1te 8 หลายเดือนก่อน +1

    This is what we need, it clears all the misconception about next js, huge thanks to you sir.

  • @gopal914
    @gopal914 9 หลายเดือนก่อน +4

    Every minute of this video is called "QUALITY CONTENT"

  • @technologymad9253
    @technologymad9253 9 หลายเดือนก่อน +2

    myyyyyyy heroooo its a treasure for nextjs devs!! really expecting a video like this from you!!

  • @vikasni95
    @vikasni95 8 หลายเดือนก่อน

    Wow sir you are attempting to do those things which other youtube doesn't focus on thank you sir 🥰🥰😍

  • @hilmiterzi3847
    @hilmiterzi3847 8 หลายเดือนก่อน +2

    This tutorial definetly should have saved thousands of Nextjs devs lol. Was at least 100x better than the nextjs documentation

  • @guidopiotrowski7114
    @guidopiotrowski7114 5 หลายเดือนก่อน

    What an amazing video. Very clarifying!!

  • @avi_mukesh
    @avi_mukesh 8 หลายเดือนก่อน

    Only about half hour into the video, but already learning a lot. Thank you so much for making this

  • @billiegodmod
    @billiegodmod 6 วันที่ผ่านมา

    1. Thinking that client components only run in the client.
    2. Using browser api's
    3. Hydration errors (how to suppress it).
    4. Incorrectly dealing with third-party components.
    5. Fetching in different places were a problem
    6. Forgetting key props with Suspense
    7. Using redirect in try catch

  • @MirkoVukusic
    @MirkoVukusic 7 หลายเดือนก่อน +1

    really good video. At start i thought it's too fast, but repeating stuff just makes it so clear by the end

  • @iamabishekbaiju
    @iamabishekbaiju 9 หลายเดือนก่อน +1

    Thanks again. The only channel where I am very excited for the new uploaded videos...

  • @thedavistheory7674
    @thedavistheory7674 9 หลายเดือนก่อน +1

    Most concise react content creator, thanks a lot for the tutorials!

  • @ramizkhan3967
    @ramizkhan3967 3 หลายเดือนก่อน +2

    i am new to nextjs and your video has helped me to understand client and server component difference.

  • @russelschuster8036
    @russelschuster8036 8 หลายเดือนก่อน +2

    lot of hard work. just 12 minutes into this video and i already liked and subscribed this channel.

  • @aisdjsiasiodjisoajd7698
    @aisdjsiasiodjisoajd7698 8 หลายเดือนก่อน +1

    Change the title to Mistakes devs make. I’m not a beginner and you made some great points!

  • @mounir101
    @mounir101 9 หลายเดือนก่อน +1

    Great video, bro! I learned a lot more than I did from the Next.js documentation because you explained things thoroughly. Thanks a lot for your hard work.

  • @yuvrajsarda6660
    @yuvrajsarda6660 6 หลายเดือนก่อน

    This is gold material. You explained the mistakes really well.
    The explanation got a bit repetitive though, maybe you can work on that in the future.

  • @hey.............
    @hey............. 9 หลายเดือนก่อน +1

    hands down, one of the most useful video on next.js. Subscribed.

  • @EduarteBDO
    @EduarteBDO 9 หลายเดือนก่อน

    This video is super relevant, I learned a lot of things, I found out that I was not validating my server actions, I'll have to address this because I thought that nextjs automatically validated them but now that I think, there's now way that next will know what type things are for validation, this is just a typescript layer. I have to come up with a nice validation strategy for keeping types but knowing that it can be unknow data for server actions.

  • @AvinashRathod
    @AvinashRathod 3 หลายเดือนก่อน +1

    Excellent , this cleared a lot of misconceptions I had and also gave me more clarity on NextJs App router concepts. Thank you.

  • @jfhandfield
    @jfhandfield 9 หลายเดือนก่อน +1

    My god was that well explained. I needed that video months ago when I started my project it would have help soooo much. Thank you for the video

  • @insane-works
    @insane-works 9 หลายเดือนก่อน +1

    wowzers! this was awesome 2 hours!
    agreed with comments above, mistakes you were showing, was the mistakes i made in a some of my previous projects
    great job! subscribed!

  • @ZynthCode
    @ZynthCode 9 หลายเดือนก่อน +12

    Intrusive thoughts: Take a shot every time "component" is being said

    • @Wulleybully
      @Wulleybully 7 หลายเดือนก่อน +1

      My brother in Christ are you trying to die?

  • @clipartinc
    @clipartinc 6 หลายเดือนก่อน

    I find the "use clients" and "use server" weird, NextJS v12 made so much sense, since v13 not so much! Thanks for your videos!!!

  • @WebDevCody
    @WebDevCody 9 หลายเดือนก่อน +6

    29 pitfalls.. makes me wonder why I keep using next.

    • @ByteGrad
      @ByteGrad  9 หลายเดือนก่อน +3

      The learning curve is real, but worth it IMO

  • @NhanNguyen-yu3gs
    @NhanNguyen-yu3gs 2 หลายเดือนก่อน +1

    the useful tutorial video, i hope you can point out more and more common mistakes that developer can make with Next.js project.

    • @ByteGrad
      @ByteGrad  2 หลายเดือนก่อน +1

      Thanks, will do!

  • @nasko235679
    @nasko235679 9 หลายเดือนก่อน +1

    Your course was amazing and your videos are always top tier. I would love it if you could do a database design course/series of videos.

    • @ByteGrad
      @ByteGrad  9 หลายเดือนก่อน

      Great to hear, thanks! Will think about your suggestion

  • @tomascerny6567
    @tomascerny6567 5 หลายเดือนก่อน

    A deficiency Next.js data caching has is that if the same fetch is called in multiple components on the same page, the first cache miss (e.g. build) will cause all of the components to fetch the same data (in parallel) and all of them will set the cache. There should be an easy way to dedupe the calls happening at the same time and let only one of the components go to the network and set the cache. E.g. first component to trigger the fetch makes others wait. After that, the components can get it from the cache. If the thing being fetched is cheap, yeah no problem, but if it's rate limited or takes a long time, although it can be rendered in parallel on the server, it's still unnecessary work.

  • @LoveTheBall
    @LoveTheBall 3 หลายเดือนก่อน +1

    Great information! Just started my first nextjs project and this information really helped alot! I'll refactor some of my code based on it.

  • @undead2018
    @undead2018 23 วันที่ผ่านมา +1

    Great content. Just bought your course to support you!

    • @ByteGrad
      @ByteGrad  23 วันที่ผ่านมา

      Awesome, thank you!

  • @Tszyu01
    @Tszyu01 9 หลายเดือนก่อน +1

    Coming from other ssr frameworks it’s absolutely terrifying using web APIs causes next to entirely collapse without specifying magic words use client. Just something you don’t need to think about in other frameworks.

  • @christian_k_e
    @christian_k_e 9 หลายเดือนก่อน +1

    I normally dislike youtube videos to learn about frameworks and programming but, I believe nextjs documentation is way too high level and as soon as you hit some specific problem is rather useless. As many others said, this cleared a lot of my confusion with nextJS, thank you.

  • @hamdaniash-siddiq5021
    @hamdaniash-siddiq5021 3 หลายเดือนก่อน +1

    What a video. This video covers almost everything about RSC... Thank you...
    there is one thing left in my head that keeps making me stuck on my project.
    "where do we save token and refresh token". since my project depends on an external data source that require access token and reguilarly refresh the token with he give refreshToken. In client side, we commonly do it in cookie, and using axios we can pass that token as bearer token, and with the interceptor we refresh the token if necessary.
    but what is your advice when it comes to server land?

  • @rahulgupta7720
    @rahulgupta7720 9 หลายเดือนก่อน +3

    Highly comprehensive video!
    Keep going

  • @lukaszw1
    @lukaszw1 9 หลายเดือนก่อน +1

    This was an awesome knowledge pill! I've watched it in one go and now I understand my code better. Thank you!

  • @ustav_o
    @ustav_o 9 หลายเดือนก่อน +5

    exactly what i was looking for. keep it up!

  • @aniketpandey2524
    @aniketpandey2524 5 หลายเดือนก่อน +5

    I spent last 3 months learning NEXTJs(Switching from react to next) and some things just didn't make sense although I'm pretty good with react. This one video simplified entire Nextjs for me. Thanks a lot brother. I'm eternally grateful.. Now it all makes complete sense.

  • @zarefgamz2515
    @zarefgamz2515 7 หลายเดือนก่อน +2

    amazing video, i started to smell my code and when i went to your video, it was indeed my code was smelly :D

  • @aripanda4209
    @aripanda4209 7 หลายเดือนก่อน +1

    Video is freakishly helpful. Great job buddy.

  • @ItsScience_B17CH
    @ItsScience_B17CH 2 หลายเดือนก่อน +1

    Thank you for helping me with my current and previous project.

  • @BeyonderW
    @BeyonderW 20 วันที่ผ่านมา +1

    Greatest Next.js video I have ever seen

  • @robboten
    @robboten 9 หลายเดือนก่อน

    Really useful knowledge and well explained! So easy to miss some of these when starting with next.js. Thank you!

  • @noeldolan518
    @noeldolan518 6 หลายเดือนก่อน +1

    Thank you, very informative, watched all the way to the end! 😅😇😎

  • @RedRobotDevelopment
    @RedRobotDevelopment 7 หลายเดือนก่อน +1

    This is an excellent video - I have experienced ALL the problems mentioned here

  • @aakashsharma7653
    @aakashsharma7653 6 หลายเดือนก่อน +2

    After understanding all, this is a cool way to make project , we have both client and server components available just we have to decide

  • @tfdesign4072
    @tfdesign4072 7 หลายเดือนก่อน +1

    This was unbelievably helpful. Thank you so much 🙏🏴󠁧󠁢󠁷󠁬󠁳󠁿

  • @jrvidotti
    @jrvidotti 4 หลายเดือนก่อน +1

    Awesome!! 🎉🎉🎉
    PS: how many times have you said "client component"? 😂

  • @simbarashemaunga5575
    @simbarashemaunga5575 3 หลายเดือนก่อน

    It's wild how Vercel brought PHP concepts to the Javascript world

  • @davidvalverde4378
    @davidvalverde4378 3 หลายเดือนก่อน

    I have one question....can you explain the purpose of wrapping a server component with a context provider? Can the context share data to the server component or its just to allow server components to be redered as server? And thank you for this tutorial, it helped me a lot!

  • @DandifiedYUM
    @DandifiedYUM 3 หลายเดือนก่อน +1

    Very informative, this video helped me a lot in understanding nextjs, thank you

  • @facundopellicer7514
    @facundopellicer7514 9 หลายเดือนก่อน +1

    Awesome video!
    I'm a bit confused about "getData" functions and the "use server" directive. We shouldn't place "use server" at the top of a file which has a bunch of "getData" functions, because we are exposing a POST endpoint, and also because calling a "getData" from a server component already make the get in the server.
    We should use "use server" only to mutations functions, and validate those.
    Did I get that right?

    • @facundopellicer7514
      @facundopellicer7514 9 หลายเดือนก่อน

      So I answer myself after some investigation. React recommends to use "server-actions" for mutating. According to React docs "Server Actions are designed for mutations that update server-side state; they are not recommended for data fetching.". You could use it to retrieve information but is not the intended way.
      Server actions request is a POST, so you will be fetching data with a POST request.
      I found in a Reddit post this answer: "I asked one of the members of the Vercel team on Discord if we could use server actions to fetch data. While it's possible, they don't encourage this, but the response I got was a bit ambiguous."

  • @davidllanes1019
    @davidllanes1019 8 หลายเดือนก่อน

    This video is really good. I’ve just finished reading the docs and you just filled all the blanks in my mind.
    Btw, what Vs code theme are you using?
    Thx

  • @sirKims
    @sirKims 8 หลายเดือนก่อน +1

    Big W Sir

  • @mrtechnostart
    @mrtechnostart 8 หลายเดือนก่อน +2

    You earned a sub, Next God.

  • @erlanggadewasakti
    @erlanggadewasakti 7 หลายเดือนก่อน +1

    you are such kind of superhero , thanks for the lesson

  • @zathegreat14
    @zathegreat14 2 หลายเดือนก่อน

    How would you advise using a state management library like zustand to handle, fetch, stored responses, to be used it a page let's say "analytics". You know eventually every component will def be a use client component, since every component needs that stored data. Is it best to ditch the zustand sml and just use the next.js inbuilt async mechanism to fetch those data individually on each components, or ...?

  • @sandeepahuja8720
    @sandeepahuja8720 5 หลายเดือนก่อน

    I would like to send the user to a different webpage.
    For example: When a user clicks a button, an API call is made; based on the response, need to redirect user to a different page.
    I have used useRouter from next/navigation. The page reloads and gets redirected. its not redirecting client side
    NEXT VERSION: 14.2

  • @Pleasantennis
    @Pleasantennis 26 วันที่ผ่านมา +1

    By far the best explanation ever🙌 Thank you

  • @DrShmuck
    @DrShmuck 8 หลายเดือนก่อน

    Such an underrated channel!