正在加载视频...

视频加载失败

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?

相关视频