How does React Suspense Work?

preview_player
Показать описание
Doing a deep dive into how exactly React Suspense works.

It's pretty clever how React Suspense works!

——

Рекомендации по теме
Комментарии
Автор

What problems does this concurrent react solve?

Does it do some things that were impossible/very difficult to do before?

So, is it only related to web only or react-native too?

toxicdesire
Автор

What's stopping me from telling react to render a placeholder until a component has data right now?

avi
Автор

is it basically like a loader for components ? as in it will render a placeholder element until a promise is resolved?

mrlon
Автор

Does Suspender do a re-render of the component when the Promise is resolved? and what about handling this with component internal state or redux-saga instead (it will do a re-render of course), is it the same?

PietroYT
Автор

When do they expect Suspense to be production ready? I did a quick Google and came up empty.

keithprice
Автор

The concurrent mode seems nice on paper, but as of right now it seems super hacky to use

matej