This commit is contained in:
@@ -121,7 +121,7 @@ export function useNotificationPolling({ enabled, canPoll, poll }: NotificationP
|
||||
window.addEventListener('offline', availabilityChanged);
|
||||
document.addEventListener('visibilitychange', availabilityChanged);
|
||||
REFRESH_EVENTS.forEach((event) => window.addEventListener(event, refresh));
|
||||
// StrictMode's discarded setup must not dispatch a second HTTP batch.
|
||||
// Immediate setup/cleanup cycles can cancel this timer before network work starts.
|
||||
schedule();
|
||||
|
||||
return () => {
|
||||
|
||||
Reference in New Issue
Block a user