Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V3 Polling: Only have one polling task. #80

Open
fmaximus opened this issue Mar 19, 2021 · 2 comments
Open

V3 Polling: Only have one polling task. #80

fmaximus opened this issue Mar 19, 2021 · 2 comments
Labels
v3 possible v3.0.0 features

Comments

@fmaximus
Copy link

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

@cwise89
Copy link
Owner

cwise89 commented May 27, 2021

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

@cwise89 cwise89 added the v3 possible v3.0.0 features label May 27, 2021
@geekskai
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v3 possible v3.0.0 features
Projects
None yet
Development

No branches or pull requests

3 participants