Next.js 14 Tutorial - 66 - Caching Data

Поделиться
HTML-код
  • Опубликовано: 30 сен 2024
  • ✨ Code snippets - pieces.app/
    📘 Frontend Interview Course - learn.codevolu...
    💖 Support UPI - support.codevo...
    💖 Support Paypal - www.paypal.me/...
    💾 Github - github.com/gop...
    📱 Follow Codevolution
    + Twitter - / codevolutionweb
    + Facebook - / codevolutionweb
    📫 Business - codevolution.business@gmail.com
    Next.js 14
    Next.js Tutorial
    Next.js 14 Tutorial
    Next.js Tutorial for Beginners
    Caching Data

Комментарии • 16

  • @srshah
    @srshah 4 месяца назад +5

    Hey I saw the NextJS 15 headline just yesterday at vercel ship, it says the default caching behaviour is changing. Unlucky timing?? :(

    • @Codevolution
      @Codevolution  4 месяца назад +3

      Indeed! I'll make sure to update the playlist when 15 goes live

  • @SuyashRajput-ro2ki
    @SuyashRajput-ro2ki 4 месяца назад +2

    No way my man just dropped the cashing video and they removed the default cashing in next15

  • @princehrb
    @princehrb 4 месяца назад +3

    you forgot to attach the new Nextjs videos to the playlist

    • @Codevolution
      @Codevolution  4 месяца назад +2

      I was away from home. All updated now :)

  • @abdelrahmanmagdy3706
    @abdelrahmanmagdy3706 4 месяца назад +2

    just for discussion,
    isn't it better to remove the async keyword from page and wrap the returned component with suspense. For the returned component make it async and start your async fetching inside it.
    this approach is gonna speed up the page loading and showing the fallback loader at first.

  • @Beast80K
    @Beast80K 3 месяца назад

    Respected Sir, thank you this crystal clear explanation.
    I have a doubt, I have an external API (Mockoon Tool) which my NextJS route handler calls to get data, but despite external API returning 503, 429, statuses etc. after revalidation period, NextJS just returns old cached data(200 status data) when response status is error (400s, 500s). It never returns the error response. I thought it would return data as it is from external API, So what's the solution for this ?

  • @asfnobambu
    @asfnobambu 4 месяца назад

    The json() function do not transform a stream to JSON. It gets JSON and parse to a JS object.

  • @YuriyChamkoriyski
    @YuriyChamkoriyski 3 месяца назад

    @Codevolutioin I am seeing only the thumb-down button below the video. Why is that? Where is the thumb-up?

  • @xyzdebu
    @xyzdebu 4 месяца назад

    caching only with GET api

  • @chesterxp508
    @chesterxp508 3 месяца назад

    GoodJob!

  • @AmnaCode
    @AmnaCode 4 месяца назад

    👍👍

  • @rahulali9346
    @rahulali9346 4 месяца назад

    only time losing

  • @ronitgurjar5747
    @ronitgurjar5747 4 месяца назад +1

    can't wait for more🔥🔥🫡