diff --git a/apps/manacore/apps/web/src/lib/data/sync.ts b/apps/manacore/apps/web/src/lib/data/sync.ts index 5f2720be8..1a9e885bd 100644 --- a/apps/manacore/apps/web/src/lib/data/sync.ts +++ b/apps/manacore/apps/web/src/lib/data/sync.ts @@ -78,7 +78,7 @@ export function createUnifiedSync(serverUrl: string, getToken: () => Promise Promise {}); + channel.pullTimer = setInterval(() => pull(appId).catch(() => {}), PULL_INTERVAL); } - // Lazy apps: no SSE until ensureAppSynced() is called + // Lazy apps: no pull until ensureAppSynced() is called } // Listen for online/offline @@ -495,10 +497,11 @@ export function createUnifiedSync(serverUrl: string, getToken: () => Promise {}); } } } @@ -506,11 +509,6 @@ export function createUnifiedSync(serverUrl: string, getToken: () => Promise Promise {}); + channel.pullTimer = setInterval(() => pull(appId).catch(() => {}), PULL_INTERVAL); } return {