Static shell and runtime holes
What you need to know
A static shell is the portion of a route that can be prepared before the visitor arrives. A runtime region supplies the part that depends on a specific request, with a Suspense fallback providing useful interim UI.
By the end, you can: place Suspense around request data; predict shell content.
Place the request read below Suspense in app/page.tsx
import { Suspense } from 'react';import { cookies } from 'next/headers';async function Preference() { const value = (await cookies()).get('reading-view')?.value; return <p>View: {value === 'compact' ? 'compact' : 'comfortable'}</p>;}export default function Page() { return <main><h1>River Books</h1><Suspense fallback={<p role="status">Loading preference…</p>}><Preference /></Suspense></main>;}Expected behavior: The heading and fallback are eligible for the shell. A request with reading-view=compact resolves to View: compact; an absent or unknown preference resolves to comfortable.
How it works
The important boundary is where asynchronous work is awaited, not where the JSX happens to appear. If the page awaits cookies before returning its Suspense boundary, that boundary is too late to contain the request dependency. Move the read into an async child. The example uses a harmless display preference and treats unknown values as the default. It is not authentication. The static shell can include the heading and fallback, while the child's final output is resolved for the request. Delivery may be buffered by browsers or intermediaries, so the exact timing of visible fallback is not guaranteed. Avoid caching raw cookies or headers. When a request-derived value is genuinely public (such as one of two allowed catalog categories), read and normalize it outside the cache scope before passing it to a reusable public function.
Move the dependency, not just the markup
Problem: Page awaits cookies -> returns Suspense -> GreetingCorrection: Page returns Suspense -> Greeting awaits cookiesTest: request A compact; request B no cookieExpected behavior: The runtime dependency moves inside the boundary. Both requests should share only public shell content.
Common mistake
A fallback wrapped around a value that the parent already awaited cannot defer that parent await. Do not use a shared module variable to transfer cookies into a cached function.
Practice and verification
Use the fixture home page. On a future approved production run, check initial HTML and final UI separately, including two isolated browser contexts and an invalid preference. Record whether the fallback was observable instead of assuming chunk timing.
Scope: App Router, proposed Next.js 16.x and React 19, Cache Components enabled in a separate fixture. Framework snippets are staged and not executed; local pure models are not framework evidence. Exact patched dependencies and platform contracts are pending.