next.js
86df9c75 - docs: cover direct visits and client navigations in the instant() e2e example (#95803)

Commit
19 days ago
docs: cover direct visits and client navigations in the instant() e2e example (#95803) Reworks the instant-navigation guide's e2e testing example to cover both ways a route is reached: a direct visit (SSR document load) and a client navigation. Each test wraps the navigation in `instant()` and asserts the shell renders while the streamed content is held back, then appears after. Also documents where the testing API is available: automatically under `next dev`, and in a production build via `experimental.exposeTestingApiInProductionBuild`. Closes: https://linear.app/vercel/issue/DOC-6477/instant-e2e-helper-for-ssr-and-soft-navs-snippets-show-difference --------- Co-authored-by: Aurora Scharff <aurora.sofie@gmail.com> Co-authored-by: Aurora Scharff <66901228+aurorascharff@users.noreply.github.com>
Author
Parents
Loading