Buckets:
| import Link from 'next/link' | |
| export default function Page() { | |
| return ( | |
| <div> | |
| <h1 data-testid="home-title">Instant Navigation Mode Demo</h1> | |
| <p> | |
| This fixture tests the <strong>Instant Navigation Mode</strong> toggle | |
| in Next.js Dev Tools. When enabled, navigations show only the cached or | |
| prefetched state — dynamic data is not streamed. | |
| </p> | |
| <h2>How to test</h2> | |
| <ol> | |
| <li> | |
| Open <strong>Next.js Dev Tools</strong> (click the Next.js logo in the | |
| corner). | |
| </li> | |
| <li> | |
| Toggle <strong>Instant Navigation Mode</strong> to <em>On</em>. The | |
| indicator turns blue. | |
| </li> | |
| <li> | |
| Click the link below. You should see the loading skeleton instead of | |
| the final page content. | |
| </li> | |
| <li> | |
| Click the blue <em>Instant UI only</em> indicator to unblock dynamic | |
| data and resume normal navigation. | |
| </li> | |
| </ol> | |
| <nav style={{ marginTop: '1.5rem' }}> | |
| <Link | |
| href="/target-page/my-post?search=foo" | |
| id="link-to-target" | |
| style={{ | |
| display: 'inline-block', | |
| padding: '0.5rem 1rem', | |
| background: '#0070f3', | |
| color: '#fff', | |
| borderRadius: 6, | |
| textDecoration: 'none', | |
| }} | |
| > | |
| Go to target page → | |
| </Link> | |
| </nav> | |
| </div> | |
| ) | |
| } | |
Xet Storage Details
- Size:
- 1.46 kB
- Xet hash:
- bbf1713ec35dc777caf1cc7ff872aae22a4e1dcbfdb1c5fc98636797695c446b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.