make-sans / developool

An ExpressJS API server consumed by a ReactJS client, which combined create the Developool service
http://developool.com
MIT License
2 stars 0 forks source link

When there's no connection to the api server the client does not acknowledge that #2

Closed stefanjm closed 5 years ago

stefanjm commented 5 years ago

When I'm trying to log in or register and the server is not reachable, it logs an error to the console but doesn't notify the user.

I get err.response is undefined.

Fix

By adding a check for connection beforehand?

ignaczalexander commented 5 years ago

I created an Error wrapper component which looks for error state and displays an error page if somethings wrong.