Skip to content

fix: pause live feeds on hidden tabs#289

Open
kpassito wants to merge 1 commit into
StellarFlow-Network:mainfrom
kpassito:codex/issue-282-page-visibility
Open

fix: pause live feeds on hidden tabs#289
kpassito wants to merge 1 commit into
StellarFlow-Network:mainfrom
kpassito:codex/issue-282-page-visibility

Conversation

@kpassito
Copy link
Copy Markdown

Summary

  • add a shared page visibility hook with SSR and unsupported-API fallback
  • pause WebSocket subscriptions and reconnect timers while the page is hidden, then reconnect/revalidate when visible again
  • gate dashboard polling and WebSocket merges behind page visibility and show a passive PAUSED badge

Verification

  • npx eslint src/app/hooks/usePageVisibility.ts src/app/hooks/useSocket.ts src/app/components/providers/SocketProvider.tsx src/app/components/PriceFeedCard.tsx
  • npm run build (fails before reaching this change because of existing unrelated errors in src/app/components/FloatingSidebar.tsx and src/app/logs/page.tsx)

Closes #282

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented May 30, 2026

@kpassito Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@kpassito kpassito force-pushed the codex/issue-282-page-visibility branch from c911668 to c460b24 Compare May 30, 2026 23:42
@kpassito kpassito force-pushed the codex/issue-282-page-visibility branch from c460b24 to e332363 Compare May 31, 2026 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🌌 Page-Visibility | Suspending Feeds on Inactive Tabs

1 participant