To see it in action, try disabling and then re-enabling your Internet connection. If you're using
Google Chrome, you can also artificially throttle the network to test its behavior under different conditions.
Network Status is currently not available.
Usage
You can use NetworkStatus in alongside Previous to
get both current and previous network status.
Warning
This utility must be used within a browser context. An isSupported property is available to
check if the API is supported on the current environment/device.
isSupported
It's important to check if the API is supported on the current environment/device before using it.
Getting the previous status
It's often useful to get the previous status of the network connection. You can use the Previous utility to track the previous state.