react-detect-offline
react-detect-offline copied to clipboard
V3 Polling: Only have one polling task.
When using multiple React Elements <Online />, <Offline />, and hooks with the same PollingConfig,
Polling should only happen once.
This will be implemented in v3 as a singleton on the window object.
@fmaximus You can take a look at this, this is the implementation of the reference v3 version https://github.com/geekskai/react-network-detect