Suspense Boundary inside `layout.tsx` with `ppr` and `dynamicIO` enabled
Unanswered
Carea Castellano Manchego posted this in #help-forum
Carea Castellano ManchegoOP
Hi guys, I was watching [theo's video](https://youtu.be/mMQCLQTky34?t=1960) on why is next.js so slow and my mental model for DynamicIO + PPR went downhill after the part he adds a
I've tried to follow the explanation but I didn't really get it why it didn't work...
I thought the compiler would pre-render everything until the first async component for that route (including layouts) and put that in the static bundle for the route.
Can anyone please explain what I'm missing here?
Suspense Boudary
wrapping the children in the layout file and that doesn't work.I've tried to follow the explanation but I didn't really get it why it didn't work...
I thought the compiler would pre-render everything until the first async component for that route (including layouts) and put that in the static bundle for the route.
Can anyone please explain what I'm missing here?
2 Replies
Northeast Congo Lion
the way I understood it was that when you go to a specific route it loads the page.tsx file, but it doesn't reload the layout.tsx .. because the suspense boundary is in the layout.tsx file it doesn't load the suspense boundary when changing pages/routes
Carea Castellano ManchegoOP
Hmm, I guess that makes sense, sadly it's very easy to make that mistake.