-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Option for queries to pause polling when unfocused #4055
Option for queries to pause polling when unfocused #4055
Commits on Jan 24, 2024
-
Updated middleware to handle poll skipping
Changes made to the polling middleware to handle the situation when the page is out of focus. The code now includes a check to see whether to skip polling if the page is out of focus. Restructured the return from 'findLowestPollingInterval' function to include 'skipPollOnFocusLost' flag.
Configuration menu - View commit details
-
Copy full SHA for 2fe5915 - Browse repository at this point
Copy the full SHA 2fe5915View commit details -
Add 'skipPollOnFocusLost' flag to query hooks
The query hooks in 'buildHooks.ts' and 'apiState.ts' files now include the 'skipPollOnFocusLost' flag.
Configuration menu - View commit details
-
Copy full SHA for bbb89b6 - Browse repository at this point
Copy the full SHA bbb89b6View commit details -
Configuration menu - View commit details
-
Copy full SHA for d1b9971 - Browse repository at this point
Copy the full SHA d1b9971View commit details -
Add tests for 'skipPollOnFocusLost' option
New test cases have been added for the 'skipPollOnFocusLost' option in query polling. Specifically, these tests verify the correct behaviour when this option is toggled, when it's reset on mount, and when it's changed via subscription options update.
Configuration menu - View commit details
-
Copy full SHA for e7fce61 - Browse repository at this point
Copy the full SHA e7fce61View commit details -
Configuration menu - View commit details
-
Copy full SHA for 65a6ae3 - Browse repository at this point
Copy the full SHA 65a6ae3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 823c3b7 - Browse repository at this point
Copy the full SHA 823c3b7View commit details -
Update skipPollOnFocusLost to use listenerMiddleware
Added documentation to apiState, tests to support listenerMiddleware usage and polling.ts updated to match
Configuration menu - View commit details
-
Copy full SHA for 65b448f - Browse repository at this point
Copy the full SHA 65b448fView commit details -
Configuration menu - View commit details
-
Copy full SHA for b9d37c3 - Browse repository at this point
Copy the full SHA b9d37c3View commit details -
Configuration menu - View commit details
-
Copy full SHA for e676ee8 - Browse repository at this point
Copy the full SHA e676ee8View commit details -
Polling skipPollOnFocusLost behavior changed to skip if any subscript…
…ion has the setting and tests changed to better reflect this behavior and intent
Configuration menu - View commit details
-
Copy full SHA for 4ae5a9b - Browse repository at this point
Copy the full SHA 4ae5a9bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 8cbf2a1 - Browse repository at this point
Copy the full SHA 8cbf2a1View commit details