If the task will only make sense to a dev, add a :zap: to the title.
Create function to ping APIs /api/misc/version when Network calls fail
Value Add
Features like window.online and window.offline are not very effective, by using our own API we can determine network state and toggle accordingly if a user suddenly loses connection / goes offline
Acceptance Criteria
[ ] Given my network request fails, a second network request sends validating if a connection exists or not
[ ] Given the second network connection fails, I am forced into offline mode
[ ] Given I am forced into offline mode, a notification appears
Additional Context
@plasticviking to determine if this is the approach to take
/api/misc/version is a small packet size and already being used as a health endpoint
Describe the task
Create function to ping APIs
/api/misc/version
when Network calls failValue Add
Features like
window.online
andwindow.offline
are not very effective, by using our own API we can determine network state and toggle accordingly if a user suddenly loses connection / goes offlineAcceptance Criteria
Additional Context
/api/misc/version
is a small packet size and already being used as a health endpoint