All questions

useContent suspends and blanks my whole page, how do I scope the Suspense boundary?

Asked by Priya Nair on

PNPriya Nair

I have a single <Suspense> boundary wrapping the whole page, and every useContent call inside it suspends the entire view until all of the slots resolve. So the static parts of the page, the header and the article body, sit behind a placeholder while the slowest personalized slot is still fetching.

What I want is for only the personalized regions to show a placeholder while the rest of the page paints immediately. How should I be placing the boundaries?

Was this helpful?

0 answers

Still have questions?