Stream it

5:05 film

After this film you canfetch fresh data in an async Server Component and stream it with <Suspense>.

Exercise

Download the exercise (a zip). Unzip it, read exercise.md, then in exercise/ run npm install and node check.mjs. The checker runs a real build and says PASS or FAIL for each criterion.

Recall

Answer each one out loud before you open it.

  1. Why did Carol's first build fail?

    The page waited for fresh data with nothing to show meanwhile, so there was no static shell to build ahead of time.

  2. What is in the static shell?

    Everything outside the Suspense boundary, plus the fallback.

  3. What does Alice see at 0 s and at 2 s?

    The page with the fallback; then the price streams into its spot.

Docs this film covers