Next.js 13: fetching

children

Streaming with Suspense

  • Streaming allows you to progressively send units of the UI from the server to the client.
  • This allows the user to see and interact with the most essential parts of the page while the rest of the content loads - instead of waiting for the whole page to load before they can interact with anything.
  • Try navigating to the Posts tab above: one post will load faster than the other one, and it will be immediately interactive
The fetch for both posts has been manually delayed in the API to simulate a real streaming delay.
By