3 ms·
A lot of the React Suspense talks explore the concept of "rhythm" and Suspense was built to give the developer greater control of the dance and flow of loading
by WorldMaker 7y ago
A lot of the React Suspense talks explore the concept of "rhythm" and Suspense was built to give the developer greater control of the dance and flow of loading states between components. From simply things that you could presumably bubble up into parent component state like "wait until everything loads, not just some of it" to much more complex dances like "don't show a loading screen at all if this part of the data arrives in the next 200ms, otherwise wait for this other part, show these three components in this specific order, then everything else as it comes in", with all sorts of things in the middle including basic buffering of things to particular timings of animation requested steps to lower "jitter" frequency of your UI as the Framework helps loading data clump into batches instead of individual component each individually signaling state changes for rerenders.