Skip to content

Suspense

Alex Gleason requested to merge suspense into main

I misunderstood how Suspense works a little. This is actually very cool, allowing us to do things like wrap the whole right-sidebar in a Suspense boundary so the whole sidebar is hidden until all components are loaded.

It's important to understand that a lazy component MUST have a Suspense boundary above it somewhere in the tree. For most UI routes, the router helper will add it, but in cases like the ProfileHoverCard it needs to be wrapped, etc.

Merge request reports