Offline Resilience
With experimental.useOffline (experimental), soft navigations and Server Actions stay pending when the network drops and retry automatically. Prefetched App Shells still paint instantly.
01
Live dashboard
Keep this page open so the link below can prefetch the dashboard shell, then go offline and click through.
Open live dashboard →02
How to test
- Prefer
next build && next start. Dev mode is not a reliable reference for offline behavior. - Chrome DevTools → Network → Offline (or airplane mode).
- Soft-navigate to the live dashboard. Expect the title/shell immediately; the metrics fallback should read “Waiting for connection…”.
- Go online again — metrics stream in with no reload.
- On the live page, click Ping while offline, then reconnect — the timestamp appends without a second click.
Note: A full page reload while offline still fails — there is no service worker here. Soft navigations into a prefetched shell are what this demo covers. The flag is global once enabled; only this demo’s banner and fallback UI are scoped.