bcgov / invasivesbc

Inventory and database repository for the creation, treatment, and report on BC Invasive plants and animals.
Apache License 2.0
13 stars 4 forks source link

:zap: Monitor Online State with Endpoint call #3640

Open LocalNewsTV opened 3 weeks ago

LocalNewsTV commented 3 weeks ago

Describe the task

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

Additional Context