💻 Learn Fetch data in Next.js | Rest API beginner friendly tutorial

Поделиться
HTML-код
  • Опубликовано: 9 июн 2022
  • This tutorial will teach Fetch data in Next.js (client-side) fetching.
    You can continue parallel with me for a better understanding of the web concepts & uplift your design/dev skills to the next level in a short time.✌🏻
    📚 Materials/References:
    🔗 Starter Kit (give it a star ⭐):-
    github.com/Streamline6/starte...
    🔔 Support me, Subscribe for more!
    / streamline13
    😊 Follow Me:
    Instagram: / stream_line6
    Twitter: / stream_line6
    💼 Business Inquiries:
    E-mail: webstreamline13@gmail.com
    🙏🏻 Thanks for watching!
    Make sure to like + Subscribe For More! ❤
    #Nextjs #tailwindcss #nikstreamline

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

  • @karansinghrajput9626
    @karansinghrajput9626 Год назад

    Love this content keep it up bro❤

  • @guillewest
    @guillewest 2 года назад

    love the content thank you so much for this tutorials

  • @pensamientosistemico4527
    @pensamientosistemico4527 Год назад

    please more nextjs

  • @batuhan2160
    @batuhan2160 2 года назад

    great vid!

  • @togoodtosaygoodbye91
    @togoodtosaygoodbye91 Год назад

    i am newbie and have a question, if i retrieve the article from api call, and then i have another api to add new article, how do i retrieve a newest data without reload the page ?

    • @TannerBarcelos
      @TannerBarcelos Год назад

      You’d optimistically update the UI and then use something like SWR or Tanstack Query to cache and revalidate / invalidate the cache on some interval. This means that your request will be sent to hydrate the client with new data but you won’t need to reload - it’ll be done for you.
      You can do this in Next13 without an external library using ISR and setting the invalidation time to something like “every 10 seconds, refetch the data”