next.js
db565337 - docs(authentication): add Auth and streaming, fix code fences and imports (#95056)

Commit
39 days ago
docs(authentication): add Auth and streaming, fix code fences and imports (#95056) ### What? - New **Auth and streaming** subsection under `### Layouts and auth checks` explaining how a top-level `await` in a layout delays the first streamed chunk, and how to push the access into a nested `<Suspense>` boundary. Links to [Push dynamic access down](/docs/app/guides/streaming#push-dynamic-access-down) and to [Sharing data with context and `React.cache`](/docs/app/getting-started/fetching-data#sharing-data-with-context-and-reactcache). - Tightens the surrounding DAL paragraph (anchor link, "prevents developers from forgetting"). - Fixes a few small bugs in surrounding code samples: default `cookies` imports (twice), `app/layout.ts` for a file with JSX, and two malformed code-fence directives in the Profile examples. <!-- NEXT_JS_LLM_PR -->
Author
Parents
Loading