The new suspense API works by throwing Promises when the data isn't ready yet.
Re:React Concurrent Mode
by erikpukinskis on Sunday October 27, 2019 @12:59PM
(#21370900)
I’m not sure what you mean by “throwing promises”...
You mean returning unresolved promises? Or returning rejected promises? Or just throwing an error?
(And you don’t throw a promise, you return and reject it)
The issue at hand is fully synchronous render functions that, e.g., go through a giant list of objects and call a bunch of other render functions on each one synchronously.
This change allows that one function to finish, and interaction to continue before all the children render.