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

Add refreshWhenHidden and refreshWhenOffline Settings for Polling #76

Open
MattCCC opened this issue Oct 9, 2024 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@MattCCC
Copy link
Owner

MattCCC commented Oct 9, 2024

This issue introduces two new settings for controlling the polling behavior in the fetchff plugin:

  1. refreshWhenHidden: Controls whether polling continues when the window or tab is hidden (i.e., the user switches to another tab or minimizes the window).

Default: false (polling will pause when the window is hidden)
Use case: Enables the user to specify whether the polling should continue when the page is not visible. This is useful in scenarios where background data fetching is necessary.

  1. refreshWhenOffline: Determines whether polling should continue when the browser detects that it's offline using navigator.onLine.

Default: false (polling will pause when the browser is offline)
Use case: Useful for cases where the user wants to control polling behavior during connectivity issues. This setting allows the user to stop or continue polling while the browser is offline.

@MattCCC MattCCC added the enhancement New feature or request label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant