Next.js 15 Ruins Caching Even More

Sdílet
Vložit
  • čas přidán 30. 07. 2024

Komentáře • 241

  • @WebDevSimplified
    @WebDevSimplified  Před měsícem +3

    Check Out Daily.dev: daily.dev/w/web-dev-simplified

  • @incrypted607
    @incrypted607 Před měsícem +167

    Having different caching behavior for dev vs production is legit psychotic. I have never had as frustrating an experience learning to use a new tool as I did with Next.js. It's like you are destined to run into esoteric problems either caused by shitty, unclear documentation or a total lack of documentation. Unless, of course, you get lucky with your google searching and find the answer on some github issue from a year ago.

    • @jannickpedersen4620
      @jannickpedersen4620 Před měsícem

      i had a production problem in next, which i never had with react or angular ect. The compiler could not tell the different between my server and client file and it wanted me to overwrite my server file with 'use client'. So spend 2 hours and found DynamicHeader solution, silly LOL

    • @ChichaGad
      @ChichaGad Před měsícem +1

      The problem is not Next but React itself
      Solid JS is the future

    • @kevinisaac4958
      @kevinisaac4958 Před měsícem +14

      @@ChichaGadproblem is react getting into bed with Nextjs. React should stay away from the Nextjs team if it needs to stay relevant in 2 years.

    • @jannickpedersen4620
      @jannickpedersen4620 Před měsícem +2

      @@ChichaGad Some say Svelte after its upgrade xD

    • @ChichaGad
      @ChichaGad Před měsícem

      @@jannickpedersen4620 Svelte is great as well. But I think you haven't heard about SolidStart version 1.0 released recently

  • @Ivan-wm6gm
    @Ivan-wm6gm Před měsícem +90

    Another reason for me to switch to react-router v7, man next.js is a bunch of temporary solutions and weird work around every new release

    • @BRBS360
      @BRBS360 Před měsícem +14

      Yep, although I'm starting to get worried about vanilla React as well. The latest release with server actions has me worried a bit. I prefer to have Client and Server strictly separated.

    • @aissa-dev1
      @aissa-dev1 Před měsícem

      @@BRBS360 Same here

    • @malachiconstant2756
      @malachiconstant2756 Před měsícem +9

      Never been more grateful I went all in on remix/react router. I can’t imagine having to deal with all these shenanigans

    • @luznoceda423
      @luznoceda423 Před měsícem +5

      React Router: The return of the King 👑⚛️

    • @MrPogi-lf5gz
      @MrPogi-lf5gz Před měsícem

      it's not even out yet

  • @dcd_music
    @dcd_music Před 9 dny +2

    You definitely are one of the people who understand how Nextjs caching mechanisms work. Your explanation is waaay better than that of the vercel team, hands down! I struggled a lot trying to remove all of the caching on version 14.
    Awesome channel!

  • @TheKosmicCraftsman
    @TheKosmicCraftsman Před 19 dny +4

    Hi Kyle, I think you nailed it in this video. After 25 yrs of programming I never got the built-in caching strategy of Next. It is also best practice in virtually all environments to cache purely for optimization reasons and never as default bevavior. Hope the Next.js team reconsiders and requires opt-in for *all* types of caching in RC 15.

  • @0-Will-0
    @0-Will-0 Před měsícem +14

    I have a lot of love for Vue SSR behind a Varnish cache. Simple to code in and simple setup.

  • @TheOnceAndFutureDoug
    @TheOnceAndFutureDoug Před měsícem +8

    Looking forward to the inevitable upcoming video on Next 15 caching strategies. :D

  • @user-ko4zx5ws7o
    @user-ko4zx5ws7o Před měsícem +3

    Thanks u kyle
    I was facing this problem and I finally found the answer through your video 😊
    God bless u man🎉

  • @georgemwaniki
    @georgemwaniki Před měsícem +5

    With next js Frontend development is becaming rocket science, I miss Nuxt 😢

  • @qwerty-or1yg
    @qwerty-or1yg Před měsícem +24

    Honestly, I've just stopped using next a while ago, been working with angular in my day job and now I'm just using it for all of my side projects as well. So much more enjoyable to code and no need to deal with all that mess next.js provides

    • @null_spacex
      @null_spacex Před měsícem +6

      Dude 🤢🤮

    • @qwerty-or1yg
      @qwerty-or1yg Před měsícem

      @@null_spacex just because you hate it doesn’t mean it’s bad. Once you get the hang of it, it becomes really enjoyable to work with it. All these jr. devs are jumping in on what’s popular these days and hate what people love to hate without even trying out the tools. That’s a sad reality front-end development has been in for a while now.

    • @qwerty-or1yg
      @qwerty-or1yg Před měsícem +5

      @@null_spacex just because you dislike it doesn't mean it's shit. Each to their own. Once you get the hang of it, everything is pretty straightforward

    • @null_spacex
      @null_spacex Před měsícem

      @@qwerty-or1yg I feel the same way about Next

    • @govindamishra3746
      @govindamishra3746 Před měsícem

      What about back-end?

  • @atimney
    @atimney Před měsícem +5

    I agree this is confusing, but the example is contrived, if your doing crud then you will need to invalidate the path which will be obvious when your working with it, also if you need specific catch scenarios your going to think about these, but agreed this will catch out some developers. Keep up the good work man

  • @melvin4829
    @melvin4829 Před měsícem

    I went to set up a project yesterday and asked for the y on tailwind, it produced not config or post css and when I installed afterwards it still wouldn’t connect. Almost given up using next because it’s constant issues on build

  • @luffythestrchykid
    @luffythestrchykid Před měsícem +7

    New version of NEXT JS basically means update yourself and climb a cliff and then expect most of the things to break .ie. jump of that cliff

  • @tuancao85
    @tuancao85 Před měsícem +1

    Another amazing explanation. Thanks Kyle!

  • @fanush3754
    @fanush3754 Před měsícem +1

    I've ran into the same issues as I'm currently working on a frontend application that was connected to a headless CMS. I have a blog page where everything was working fine in development, as I added a new blog, it was being displayed in my frontend, but as soon as I pushed it live, that was no longer the case. The way I fixed it ( and I'm not entirely sure it's a good idea) is setting revalidate:0 on my fetch function. Is this a good practice?

    • @charleschukwuemeka8482
      @charleschukwuemeka8482 Před měsícem

      That's the way it gets fixed. What it simply means is that the page details are fetched newly whenever the page is opened.

  • @felipefregginrules
    @felipefregginrules Před měsícem +1

    Does the force dynamic work on the pages router?

  • @sean1334
    @sean1334 Před měsícem +2

    As a react developer wanting to learn NextJS, this problem with 14 made me scrap the whole thing and switch back to regular react in my latest project. Might try again with NextJS 15 now that I understand the behavior from your video!

  • @charliesta.abc123
    @charliesta.abc123 Před měsícem +11

    I'm going back to Nuxt and Vue. It's stable now. This relationship with react and next is too toxic now.

    • @kevinisaac4958
      @kevinisaac4958 Před měsícem +3

      Exactly. Nextjs is an infection to React. The React guys should stay the hell away from the Vercel guys if they still need to be relevant in 2 years.

    • @georgemwaniki
      @georgemwaniki Před měsícem

      😂😂 my thoughts too, I came from nuxt/Vue to react because of the job market

    • @wielomarian
      @wielomarian Před měsícem

      @@kevinisaac4958 Bingo my brother! Vue + Nuxt is the way. So much better DX & performance compared to that shitty Next.js...

    • @_iyoub
      @_iyoub Před měsícem

      Exactly😂🤦‍♂️if there are any react developer is reading this, at first i was so hesitant to try out vue 3 and thought nothing can beat react, now it has been more than 3 years and i havent used nothing but vue/nuxt for all my work/side rpojects, this has been the best decision i have made and i encourage you to do so, i mean at this point its for your own benefits tbh

    • @AvikNayak_
      @AvikNayak_ Před měsícem

      ​@@kevinisaac4958 if it is the problem then why aren't people moving to remix

  • @piscopancer
    @piscopancer Před měsícem

    this version 15 is insane ahahaha, love you Kyle

  • @fazlerabbifaiyaz6905
    @fazlerabbifaiyaz6905 Před měsícem +1

    is this behavior also present in page router?

  • @chris94kennedy
    @chris94kennedy Před měsícem +37

    fucking front end is a mess. So glad I rarely develop in React, and mostly work on the backend outside of metaframeworks and focused on DICOM. In this role I now manage to completely avoid this shitshow, I honestly feel bad for you guys for having to suck this up.
    I miss when the debate was as simple as being about lifecycle methods and whatnot. This is wild.

    • @ParwinderSingh-te7lb
      @ParwinderSingh-te7lb Před měsícem +6

      To top it up now so much job layoffs .kids have to learn all this shit on top of sht and still getting no jobs.. despicable

    • @chris94kennedy
      @chris94kennedy Před měsícem

      @@ParwinderSingh-te7lb yeah. something's not right here.

    • @chris94kennedy
      @chris94kennedy Před měsícem +1

      chaos is the word

    • @marcuss.abildskov7175
      @marcuss.abildskov7175 Před měsícem

      Use Angular. Problem solved

    • @AvikNayak_
      @AvikNayak_ Před měsícem +4

      ​@@ParwinderSingh-te7lb One of the worst decisions in life is to get into front end dev right now. I wonder how people are keeping up with all the frequent updates.

  • @namandeepnegi1709
    @namandeepnegi1709 Před 8 dny

    Can someone tell me what is the default revalidation time in next js 14 fetch request, if I don't assign any revalidation in it.

  • @iPankBMW
    @iPankBMW Před měsícem

    I have actually moved away from Nextjs because of these reasons. But in v15, do we need to ”force-dynamic” on the route to make the new fetch to work as expected - or can we just use useNoStore at fetch function level to make the route not staticly rendered?

  • @golden_smiles
    @golden_smiles Před měsícem +3

    Front end in general is OK. Just don't lock to the shitty hypie technologies to get to the point when they go even shittier. It was a lot of signals about this situation before on NextJS.

  • @EinChris75
    @EinChris75 Před měsícem +6

    I'm old... I am still stuck with php for my personal page.
    It works like it did 20 years ago. Almost the same code, but now on php 8.
    For professional work, fortunately, I do not have to do web stuff very often.
    But that looks so f-ed up. Is this really state of the art?
    I thought writing cgis with perl was terrible. But that is even worse.
    Where is the benefit from that? What is the advantage? It all looks so crappy.

  • @realtebo
    @realtebo Před dnem

    Thanks for this excellent video. Is the v15 doc already available?
    Our projects are heavily cached-based so we MUST trace every renders and every call and choose what to do with every single piece of sw

  • @codeinProjects3295
    @codeinProjects3295 Před měsícem +4

    redux is not working with react 19 and nextjs 15 , can you make a video on it ?

    • @marcuss.abildskov7175
      @marcuss.abildskov7175 Před měsícem

      Why are you using Redux in 2024?

    • @Bazan-gd3lb
      @Bazan-gd3lb Před měsícem

      @@marcuss.abildskov7175 because redux is great data flow manager, its not only global state container. What is alternative for redux today?

    • @kashmirtechtv2948
      @kashmirtechtv2948 Před měsícem

      ​@@marcuss.abildskov7175what should he use then??

    • @charleschukwuemeka8482
      @charleschukwuemeka8482 Před měsícem

      ​@@marcuss.abildskov7175What's the best alternative solution?

    • @subhamsubian6677
      @subhamsubian6677 Před 14 dny

      @@marcuss.abildskov7175redux toolkit is good though

  • @charleschukwuemeka8482
    @charleschukwuemeka8482 Před měsícem

    What about using const revalidate...?

  • @doppeltevier
    @doppeltevier Před měsícem

    Could you create a video about Atlassian's new framework-agnostic, low-level dnd library called "pragmatic-drag-and-drop"?

  • @codinginflow
    @codinginflow Před měsícem

    I actually liked the default client-side router cache. It made navigation within the app very fast. But I guess you can't please everyone.

  • @AAfzal-lk2nf
    @AAfzal-lk2nf Před měsícem

    Hey Kyle 👋, I've been watching your content for 2 years now, I have learned so many things about web development from you, can you please make videos on projects, I think learning things is important but it is of no use if you don't apply it, so please make videos on project

    • @macctosh
      @macctosh Před měsícem

      videos on projects won't help find something your passionate about and jump into it. try coding for month staright and see what happens! will you get stuck, will you get even more motivated after a month, who knows... just do it and find out!

    • @AAfzal-lk2nf
      @AAfzal-lk2nf Před měsícem

      @macctosh I've done coding for 6 months now, and I feel the urge to build cool projects with the things I've learned, but I don't seem to find any interesting projects here on CZcams🤷‍♂️

  • @AK-ij4qf
    @AK-ij4qf Před měsícem +2

    Goddamn everyday I become a little closer to migrating my entire month-old project to vite React + React Router instead of this cesspool

  • @St0rMsk
    @St0rMsk Před měsícem

    Love the video. 🎉

  • @tajamalrafiq3651
    @tajamalrafiq3651 Před měsícem

    We just started nextjs in monorepo. Is anything good in v15?

    • @lazymass
      @lazymass Před měsícem

      React 19, so react compiler

  • @curiouslycory
    @curiouslycory Před 29 dny

    I suspect these behaviors might even be different depending on if you're using SSR vs SSG. I'd guess your project is configured as SSG?

  • @irom77
    @irom77 Před 2 dny

    Does anyone have repo with these test examples so I can play myself ?

  • @PraiseYeezus
    @PraiseYeezus Před měsícem +1

    Can you check whether the same behavior works if you pass the evaluated number to a variable instead of calling it directly? e.g. const num = Math.random {num}
    I'm wondering whether the `Object.is` comparison is messing with the caching somehow...directly returning an invoked function inside JSX isn't good practice, so if it only happens in this instance I think that's acceptable behavior.

  • @Flash136
    @Flash136 Před měsícem +6

    I'm one of the few people that actually don't mind having pages static by default. I just hope they added easier ways to determine whether a page is static or not.

  • @CodeXBro
    @CodeXBro Před měsícem +1

    Next week's updates: Launching Next.js 16 fixing another something about caching and forgetting about a broken v14 and v15. Honestly, I have been struggling so much with weird issues in Next.js and unable to move fast in developing one of my side projects that's not even complex. I tried hard to do it in Next.js because the React team is pushing it towards it and I am comfortable writing React code. But I am starting to think of either moving to another framework like Remix or Nuxt or go React + Vite route.

    • @marcuss.abildskov7175
      @marcuss.abildskov7175 Před měsícem +1

      If you wanna stick with React I would definitely go the Remix/React Router way

    • @CodeXBro
      @CodeXBro Před měsícem

      @@marcuss.abildskov7175 Hi thanks for your reply. Are you personally using Remix? What are your thoughts on after a horrible experience with Next? Is it more stable and will it remain stable and up o date in the upcoming days as yo u know React 19 is coming and React Team and Next team are working together but Remix is not involved in that sense.

  • @nishantmogha7550
    @nishantmogha7550 Před měsícem +18

    Switched to Remix life is much simpler now 😊

    • @looming_
      @looming_ Před měsícem +5

      Good luck convincing your team

    • @nishantmogha7550
      @nishantmogha7550 Před měsícem +29

      I am the team

    • @ParwinderSingh-te7lb
      @ParwinderSingh-te7lb Před měsícem

      @@nishantmogha7550 yeah but the point stands I want to learn remix but all I see is nextjs jobs

    • @xytric8245
      @xytric8245 Před měsícem +4

      Same, stopped using Next after using it for 2 years a couple months ago because I got so tired of debugging the framework. Remix is in my opinion so much simpler and more enjoyable to use. Also vite for the dev server and build tool is a lot nicer and speeds up CI/CD and development by more than I expected it to. Next dev server and build process is atrociously slow for large projects.

    • @lazymass
      @lazymass Před měsícem

      Remix is dead now

  • @SukoonBeautifulMusic
    @SukoonBeautifulMusic Před měsícem

    Everyone is singing the praise of Next.JS 15. I am confused why they did not highlight these issues like you did.

  • @hannesz6322
    @hannesz6322 Před měsícem +3

    I don't know if this kind of tutorial already exists from you, but im very interestet in building a simple next.js app but with a express backend - How to create, connect, send cookies to the Client, and all that stuff. :D
    Your Tutorails help me a lot to improve my skills :D

    • @pablom8854
      @pablom8854 Před měsícem

      why use next with node? just use vite

    • @chris94kennedy
      @chris94kennedy Před měsícem

      next is a fullstack framework tho. do you mean a simple react UI with express backend?

    • @hannesz6322
      @hannesz6322 Před měsícem

      @@chris94kennedy Hi, he's just uses Next UI and Express Backend

    • @chris94kennedy
      @chris94kennedy Před měsícem

      @@hannesz6322 think you're confusing Next UI with nextjs, they're different

  • @funfstuck
    @funfstuck Před měsícem

    i’m recently thinking about switching framework. guys what should i pick vue or angular either just stay with next js

    • @wielomarian
      @wielomarian Před měsícem

      You can't go wrong with Vue + Nuxt.js bro!

    • @paolo-e-basta
      @paolo-e-basta Před měsícem

      @@wielomarian the last time I tried to re-evaluate that combo (recently), which at this point I'd prefer over all the others, I got a bunch of issue with language server in vs code, and that sucks. DX is important and hope they'll provide some sort of improvements. It's seems unreal that their vscode extension, officially recommended on vuejs site is so bad. Or am I missing something?

  • @joel-d01
    @joel-d01 Před měsícem +1

    What is the name of your current browser??

  • @M1a2n3o43
    @M1a2n3o43 Před měsícem

    What browser are you using?

  • @FrontendFanatic
    @FrontendFanatic Před měsícem

    Should I just learn PHP at this point? I kinda want a predictable framework

  • @m12652
    @m12652 Před měsícem +1

    I tried nextjs once, I don't get the attraction. Admittedly it was someone else's code, something from Edgedb, but the performance sucked and the dev folder was close to 1gb. A simple tiny no-framework node app blew it out of the water for some reason. Query response times dropped by about 30ms without next.

  • @jimmymac601
    @jimmymac601 Před měsícem +1

    If it isn't already, caching should be set at the route level. Some routes operate just fine with caching and others do not.

  • @rationalindianguy
    @rationalindianguy Před měsícem

    Hi can you please make a course on React and NodeJs

  • @e_tas_
    @e_tas_ Před měsícem +4

    I think the practical strategy for using NextJS is like buying an iPhone. If the newest iPhone is a 10 and you want a new phone, buy the 9 because it's cheaper and almost just as good. In this case... maybe it's best to stick to NextJS 13. Seems like 14 and 15 aren't mature enough, and 15 is basically v14-2.0.

  • @goncaloshred
    @goncaloshred Před měsícem

    I guess if you have the fetch request in a .ts file instead of writing it in the page.tsx, it will work dynamically without having to specify that.

  • @nothingisreal6345
    @nothingisreal6345 Před měsícem

    Great video. I don not use next.js. But it is a common phenomenon in recent years that new stuff comes up that is supposed to make your life easier but effectively it lowers productivity, stability and maintainability. Examples: hot reload in VS. Rarely ever works. Often leads into debugging not your real code but some old code. Python is another great example. We will all suffer in the future maintaining Millions of lines of code written in Python without any type safety and HORRIBLE coding practices.

  • @bibekganesh8255
    @bibekganesh8255 Před měsícem +2

    "You saved me just in time! I had been stuck on this problem for four days. Thank you so much!"🤩🤩🤩❤️

    • @Adityacode
      @Adityacode Před měsícem +1

      You could have learned a new framework like remix in 4 days

    • @bibekganesh8255
      @bibekganesh8255 Před měsícem

      ​@@Adityacode yeah i could, but had no choice, except solving, have gone far with my project.

  • @chandrakanthchintada8029
    @chandrakanthchintada8029 Před měsícem

    I guess you can force not to cache. The cache would work for some sites where we really need it

  • @uwitondanishema
    @uwitondanishema Před měsícem

    I must switch to astro or react-router v7

  • @aqibmalik6313
    @aqibmalik6313 Před měsícem +2

    hey kyle love you and your work ❤❤❤
    Happy Eidul Adha

  • @kasper369
    @kasper369 Před měsícem

    Time to hit the doc and real entire thing again

  • @alexandertarasenko3038
    @alexandertarasenko3038 Před měsícem

    I wish vue (nuxt) or remix had as big community as next js. Then I’d switch to nuxt or remix immediately. But let’s be honest: no matter how much madness comes in next js we will stil use it. Because good luck finding good libs for mid size + projects if you are using svelte or smth like that…

  • @holgerflick
    @holgerflick Před měsícem

    I agree that this is less than ideal. However, this seems to be very much an issue that can be addressed in future releases and should not taint the overall rating of the framework drastically.

  • @Muphet
    @Muphet Před měsícem +2

    every version: we broke nextjs

  • @ParwinderSingh-te7lb
    @ParwinderSingh-te7lb Před měsícem +1

    Hey 1st comment. Caching is their kryptonite. Never learnt nextjs .. remix I have set my eyes on or astro. But to be real I am tired of these things alltogether. Need a break 😭

  • @pablom8854
    @pablom8854 Před měsícem

    What really suck is that if you want to send notifications from next(server side) to a client, YOU NEED TO PAY for a service like pusher or code a node server, this part of serverless really suck... and they never mention this. So for big apps you still need Node 💁

    • @luzaw4957
      @luzaw4957 Před měsícem

      NextJS 15 especially solved this, right?

    • @upsxace
      @upsxace Před měsícem

      What do you mean with "notifications"?

    • @pablom8854
      @pablom8854 Před měsícem

      @@upsxace sending actions from the server to the client

    • @upsxace
      @upsxace Před 29 dny

      @@pablom8854 ah i see. Well, they shouldn't have to mention that you need a server for something like that. What you're talking about either needs websockets or cron jobs or both, and a serverless environment never excels at those. And you don't necessarily need node/common server, but you will at least need a rabbitmq server in the end, so yeah, there is always a server involved.

  • @eleah2665
    @eleah2665 Před měsícem +6

    Go Remix.

    • @xxXAsuraXxx
      @xxXAsuraXxx Před měsícem

      Reached its end of life now, focus is on React router

  • @beynod_ordinary
    @beynod_ordinary Před měsícem +1

    Better to use Pages in Next

  • @kaksarkar
    @kaksarkar Před měsícem +3

    This is a fucking mess I regret every time I use next.js every time there is something that just don't make any sense

  • @andrewwachira1
    @andrewwachira1 Před měsícem

    Am using nextjs v12 and am not changing up anytime soon.

  • @snivels
    @snivels Před 19 dny

    I thought they were doing away with the need for using force-dynamic in Next.js 15, seems not to be the case. Boggles the mind.

  • @krtirtho
    @krtirtho Před měsícem

    Yeah day by day it just pushes me more into HTMX + Ocaml stack

  • @pyquix8576
    @pyquix8576 Před měsícem +5

    Next and Typescript are killing react 😴

    • @thecoolnewsguy
      @thecoolnewsguy Před 18 dny +1

      TypeScript is improving it and people who say otherwise have skill issues as it's easy as well

    • @pyquix8576
      @pyquix8576 Před 18 dny

      @@thecoolnewsguy Oh yeah the "skill issue guy". Tell it to DHH. Now people love to code masturbate just to feel good about themselves. Skill issue is if you can't code without type hint, though it's a convenient feature but not if I have to scaffold it, ide should. I'd say improve your core and enjoy the experience of dynamic typing. You want static typed? Why use fake one, build with c# and stop polluting js.

  • @utkuonursahin1237
    @utkuonursahin1237 Před měsícem

    I'm just waiting for Svelte 5. Once it become stable, I will never come back to the Next.js

  • @easy-peasy-tutorials
    @easy-peasy-tutorials Před měsícem +1

    it was already difficult learning nextjs .not again ...

  • @ChichaGad
    @ChichaGad Před měsícem +3

    Solid JS is the future

    • @luznoceda423
      @luznoceda423 Před měsícem

      Hope Inertia will support Solid JS soon so we can have a sane front-end development and use Laravel to have a sane back-end development

    • @ChichaGad
      @ChichaGad Před měsícem

      @@luznoceda423 Hell yeah du-...
      Wait what!? Laravel?

  • @guanbo-yang
    @guanbo-yang Před měsícem +2

    Hi Kyle, I am a Next.js developer, and I was just wondering why you use a GET request if you know your data will be dynamic. Isn't the GET request supposed to be cached by the browser unless you specify cache-related headers?

    • @larsmoser8448
      @larsmoser8448 Před měsícem +1

      GET is for getting data w/o modifying it

    • @hnccox
      @hnccox Před měsícem +1

      How else would you GET your data?

    • @guanbo-yang
      @guanbo-yang Před měsícem

      I don't think a GET request is suitable for something so dynamic and crucial to remain dynamic. Perhaps a POST request is more appropriate in this context because it clearly indicates that the endpoint performs an operation that can yield different results each time it's called.

    • @schular94
      @schular94 Před měsícem +2

      ​@@guanbo-yang It makes 100% sense to be a GET, as it is for retrieving data without any modifications, even if this data is dynamic, for example you want to retrieve user's information, this is going to be a GET and it is dynamic, as each user would have a different data set based on the token (user identifier) sent fron client. Caching a GET makes sense, but in the end it's not a general rule, some things you might not want to cache, it really depends on each specific situation.
      You should check the REST API verb conventions and see what's the meaning of them as these are some good standards put in place for quite a long time.

    • @hnccox
      @hnccox Před měsícem +1

      @@guanbo-yang maybe you should read up on the different HTTP request methods and what their purpose are

  • @thedailycutline278
    @thedailycutline278 Před měsícem +1

    nextjs 15 is not even released, this video might make u think it's released, why are you complaining about something that still in development?

  • @viewpoint8976
    @viewpoint8976 Před měsícem +4

    Let me comment here From Namibia 🇳🇦

  • @Zagoorland
    @Zagoorland Před měsícem +2

    Me laughs in SvelteKit

  • @nnokki
    @nnokki Před měsícem

    Your voice is so deep 😍😍 I can't concentrate

  • @lucascubile7141
    @lucascubile7141 Před měsícem

    What do you mean next 15??? 14 isnt even fully supported yet.........

  • @monarchgam3r
    @monarchgam3r Před měsícem

    I’m just gonna stick with Vite + Tanstack router for now

  • @KiloSierra1
    @KiloSierra1 Před měsícem +18

    I honestly can't believe everyone isn't over NextJS yet. It started off good then rapidly went downhill.

    • @FeFeronkaMetallica
      @FeFeronkaMetallica Před měsícem +7

      Sadly its promoted by React itself. NextJS is just a bugy mess

    • @ellisj98
      @ellisj98 Před měsícem +2

      people just need to stop using react

    • @FeFeronkaMetallica
      @FeFeronkaMetallica Před měsícem

      @@ellisj98 yeah, Im starting to look into Angular, but is not so easy when huge part of web FE runs on React,

    • @gcash49
      @gcash49 Před měsícem

      ⁠@@ellisj98pays big bucks + it is easy for me

    • @funfstuck
      @funfstuck Před měsícem

      what do you recommend instead?

  • @dj10schannel
    @dj10schannel Před měsícem

    This feel like or looks like trolling, on njs end lol

  • @geelemo
    @geelemo Před 13 dny

    You see why I'm still on next v 12

  • @oladejiraji2919
    @oladejiraji2919 Před měsícem

    Is that safari 😆

  • @Dante-sx4rb
    @Dante-sx4rb Před 3 dny

    Larval-inertia .. the old reliable

  • @nikmat
    @nikmat Před měsícem

    You could’ve highlighted the active links, don’t make it more frustrating.

  • @fungilation
    @fungilation Před 13 dny

    Skill issue
    Your fetch() single static url and with no options. In real world apps, if a fetch is truly dynamic, you'd pass it different GET/POST params and/or with auth headers. Does that not make Next 15 page opt for dynamic instead of static then?
    If yes then yes I agree it's a bug. If not, your RNG api being dynamic s contrived and not a thing to whine about when this fetch() I do expect to return static data and thus no need for the page to be dynamic.

  • @engine_man
    @engine_man Před 28 dny

    I’m still on v13

  • @huyifan83
    @huyifan83 Před měsícem

    I switched to Remix. I don't like the way they do things.

  • @frinno_io
    @frinno_io Před 13 dny

    Ever since I started hearing about NextJs there's always some issue or some update. Always. Ts a pass for me.

  • @kashnigahbaruda
    @kashnigahbaruda Před měsícem +1

    Remix is superior. Nextjs defaults are still retarded and broken. Static page generation should obviously be opt-in, not forcing people to dig around in docs for hours to debug what's going on.

  • @MrPogi-lf5gz
    @MrPogi-lf5gz Před měsícem

    i'm learning Astro

  • @justine_chang39
    @justine_chang39 Před 19 dny

    i just made a webapp and i'm still on Next 13 pages router, worry free

  • @jeffreyjdesir
    @jeffreyjdesir Před měsícem

    "Whatever happened to predictability..."

  • @jellyfish1772
    @jellyfish1772 Před měsícem +1

    Why is everyone using theos browser 😤😤😤😤

    • @null_spacex
      @null_spacex Před měsícem +1

      You’re kidding right lol

    • @jellyfish1772
      @jellyfish1772 Před měsícem

      @@null_spacex no seriously. Why🐸

    • @funfstuck
      @funfstuck Před měsícem

      @@null_spacexnope i’m wondering too

  • @fullstacklarry
    @fullstacklarry Před měsícem

    and I thought Nuxt bugs were bad. Haha haha.

  • @Nscb1947
    @Nscb1947 Před měsícem

    A big F U to whoever wanted to play with developers using caching. Back to simple react.

  • @VeitLehmann
    @VeitLehmann Před měsícem +1

    Next.js is becoming the new Java. Used by enterprises, not something many would choose for personal stuff. And, of course: Write once, debug everywhere.

    • @punsmith
      @punsmith Před měsícem

      Java is robust and changes very little. So, post can be summed up as "Tell me you don't know squat about Java without telling me"

    • @VeitLehmann
      @VeitLehmann Před měsícem

      @@punsmith Oh yes, you're totally right. It was just a joke anyway. The only thing that doesn't change with Next.js are the cached responses 😉

  • @abidibnazam4462
    @abidibnazam4462 Před měsícem

    Why waste time using Next.js when you have Frameworks like Nuxt and Sveltekit

  • @chambaderaphael8946
    @chambaderaphael8946 Před 15 dny

    Simply change fmk

  • @imobcode707
    @imobcode707 Před měsícem

    First comment 😊