Reproduce:
- Goto any protected page
- Let session expire (or delete your credential cookies and localstorage)
- Navigate to another protected page
Expected:
- I get redirected to login page without warnings in browser console
Observed:
- Warning about setting setState on an unmounted component (Footer)
Hint:
The Footer component is mounted when the new protected page is accessed. The Footer makes a query for the connection status. Before the query response arrives, the Footer is unmounted again for the login page
Reopening to use an alternative solution which provides better support for error handling.