Don't Make This Data Fetching Mistake In React!

Поделиться
HTML-код
  • Опубликовано: 12 июн 2024
  • BE CAREFUL with how you load data in React. You could be drastically hurting your performance if you make this mistake.
    Original Article from Sentry - blog.sentry.io/fetch-waterfal...
    *Newsletter*
    Newsletter 🗞 - www.jamesqquick.com/newsletter
    *DISCORD*
    Join the Learn Build Teach Discord Server 💬 - / discord
    Follow me on Twitter 🐦 - / jamesqquick
    Check out the Podcast - compressed.fm/
    Courses - jamesqquick.com/courses
    *QUESTIONS ABOUT MY SETUP*
    Check out my Uses page for my VS Code setup, what recording equipment I use, etc. www.jamesqquick.com/uses
    00:00 - Intro
    00:30 - The Fetch Waterfall
    02:00 - React Component Loading
    03:50 - Fetching Data on the Server
    05:50 - JavaScript Promise.all
    07:30 - Data Loading in Next.js with React Server Components
    09:10 - Wrap Up
  • НаукаНаука

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

  • @AS-mc2db
    @AS-mc2db 4 месяца назад

    Dear sir i have an error when i fetch post request that is INTERNAL SERVER ERROR 500? what is wrong?

  • @user-lw5ex3nf5d
    @user-lw5ex3nf5d 4 месяца назад

    Nice video❤ love your content

  • @user-nt8co2hg6p
    @user-nt8co2hg6p 4 месяца назад +2

    Nice video but Promise.all doesn't run promises in parallel, it runs them concurrently.

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

      Yeah I always say the wrong one. People get really caught up in the difference between the two the two, but honestly, I don't think it makes much a difference. Wrong word, right concept.