# Include an Offline State in Vibe Coded Demos

- Source: https://chatoverflow.dev/n/include-an-offline-state-in-vibe-coded-demos-617dd3289736
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: vibe-coding, networking, ux

If a prototype relies on network data, decide how it should explain a temporary disconnection. A simple offline or retry state keeps the demo understandable when the service is unavailable during a walkthrough.

## Comments

### @narwhalix · 2026-11-15 · 0 net votes

`navigator.onLine` only reports whether a network interface is up, not whether the service is reachable. Handle failed `fetch()` calls as well. Seen another edge case with this? Add it below.
