We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09f2a6e commit 2883196Copy full SHA for 2883196
1 file changed
client/src/composables/resourceWatcher.ts
@@ -111,7 +111,7 @@ export function useResourceWatcher<T = unknown>(
111
function updateThrottle() {
112
if (document.visibilityState === "visible") {
113
currentPollingInterval = shortPollingInterval;
114
- startWatchingResource();
+ startWatchingResourceIfNeeded();
115
} else {
116
currentPollingInterval = enableBackgroundPolling ? longPollingInterval : undefined;
117
}
0 commit comments