Next.js Discord

Discord Forum

Help me understand Streaming and how SSR works

Unanswered
Cape lion posted this in #help-forum
Open in Discord
Cape lionOP
From what i understand, when you create a loading.tsx file in the route folder or even if you dont, Next SSR compiles the webpage in the server and sends the data in chunks; first the layout, then the loading and finally when page.tsx(containing async function) finshes fetching data, unlike older SSR where it would send the file only after everything finished compiling. Am i geting it right?

1 Reply