The main page is left blank if no connection is successful
Steps to reproduce:
- Put the computer in airplane mode (no internet, but localhost running)
- Load the page
- After a few warnings, the screen remains blank
-
Review why isConnected
is true (because the spinner is not showing up) -
Add (if needed) a new state variable like networkUnavailable
- If the
catch
block ofinitNetwork
is reached:-
Set the flag -
Display a card with text describing the network error -
Show a Retry button to try to reconnect again
-
Edited by Nigeon .