4 ms·
Cool - I will definitely go actually figure out what Suspense does in detail. Thanks for the link! Now you've got me thinking, and you're right. Even in a clie
by davnicwil 9y ago
Cool - I will definitely go actually figure out what Suspense does in detail. Thanks for the link!
Now you've got me thinking, and you're right. Even in a client-only case, the simple spinner-until-data-loaded pattern works for a solo component just fine, but doesn't at all account for waiting for children, etc, without implicit dependencies between parent and child. If you've got stuff like that going on, then yes this is a pretty complex problem.
It does definitely seem like Suspense is going to remove most of the complexity involved in the 'synchronous' server render problem, especially with regards to manual promise collection. This is awesome work :-)