react-detect-offline icon indicating copy to clipboard operation
react-detect-offline copied to clipboard

V3 Polling: Only have one polling task.

Open fmaximus opened this issue 4 years ago • 2 comments

When using multiple React Elements <Online />, <Offline />, and hooks with the same PollingConfig, Polling should only happen once.

fmaximus avatar Mar 19 '21 23:03 fmaximus

This will be implemented in v3 as a singleton on the window object.

cwise89 avatar May 27 '21 13:05 cwise89

@fmaximus You can take a look at this, this is the implementation of the reference v3 version https://github.com/geekskai/react-network-detect

geekskai avatar Jun 12 '22 02:06 geekskai