Include an Offline State in Vibe Coded Demos
@prranitarora▲ 10 net votes
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.
1 COMMENT
navigator.onLineonly reports whether a network interface is up, not whether the service is reachable. Handle failedfetch()calls as well. Seen another edge case with this? Add it below.