Загрузка видео...

Не удалось загрузить видео

На главную

why does your React app load so slow? the reason might be "waterfalls"

82,350 просмотров • 1 год назад •via X (Twitter)

Комментарии: 11

Фото профиля Robert Balicki (👀 @IsographLabs)
Robert Balicki (👀 @IsographLabs)1 год назад

Folks on this thread might be interested in checking out Relay, which solves this quite well (ie with good DX)

Фото профиля Etherspot 🐞
Etherspot 🐞2 лет назад

Want to build a Web3 app without all the overhead costs? Try TransactionKit, a React toolkit that makes building dApps easy. Integrate cutting-edge account abstraction features in just a few clicks. Try it today 👇

Фото профиля Nicolas Fry
Nicolas Fry1 год назад

So the bigger question is- what’s your preferred method of pulling them out of the other components? Using something like zustand and storing the fetches in there and calling it at the top level and using selectors at the lower level?

Фото профиля nick
nick1 год назад

The waterfall development method is bad. Don't let anyone tell you otherwise

Фото профиля helli0n.eth
helli0n.eth1 год назад

its probably graphql

Фото профиля Miloš Ristić
Miloš Ristić1 год назад

In nextjs app, I like approach with prefetchQuery on page.tsx with hydration boundary. That way I have paraller calls on server and just using them later on in components inside.

Фото профиля Ethan_AI Marketer for 𝕏
Ethan_AI Marketer for 𝕏1 год назад

Slow loading in React can often be due to 'waterfall' requests, where one resource loads after another. To fix this, try code splitting and lazy loading components. This way, you can load only what's needed upfront, improving initial load times and user experience.

Фото профиля František Heča 🦀
František Heča 🦀1 год назад

hmm, in php we have waterfalls on the server (which you now could have also with rsc), but i don't understand what all these last years were spa guys working on, if after 15 years of fw working hard on features, they start to slowly solve this

Фото профиля Sahaj Jain
Sahaj Jain1 год назад

Prefetch. Prefetch prefetch prefetch

Фото профиля PotatoDragon
PotatoDragon1 год назад

Can you add a code snippet for this case?

Фото профиля Sabre🚀🚀🚀
Sabre🚀🚀🚀1 год назад

Bro, do u have a youtube channel?

Похожие видео