Fix connection indicator script duplication on SSE patches #12

Merged
ryan merged 1 commits from fix/connection-indicator-script into main 2026-03-03 20:44:57 +00:00
Owner

Summary

  • Split ConnectionIndicator into two components:
    • ConnectionIndicator(lastPing) - just the element, used for SSE patches
    • ConnectionIndicatorWithScript(lastPing) - element + script, used for initial page render
  • Fixes issue where the setInterval script was re-added on every patch, creating multiple timers
## Summary - Split `ConnectionIndicator` into two components: - `ConnectionIndicator(lastPing)` - just the element, used for SSE patches - `ConnectionIndicatorWithScript(lastPing)` - element + script, used for initial page render - Fixes issue where the `setInterval` script was re-added on every patch, creating multiple timers
ryan added 1 commit 2026-03-03 20:39:32 +00:00
fix: separate connection indicator script from patchable element
All checks were successful
CI / Deploy / test (pull_request) Successful in 14s
CI / Deploy / lint (pull_request) Successful in 25s
CI / Deploy / deploy (pull_request) Has been skipped
0e344de9c1
The script was being re-added on every SSE patch, creating multiple
setInterval timers. Split into ConnectionIndicator (for patches) and
ConnectionIndicatorWithScript (for initial page render).
ryan force-pushed fix/connection-indicator-script from 0e344de9c1 to d6e64763cc 2026-03-03 20:44:03 +00:00 Compare
ryan merged commit f6c5949247 into main 2026-03-03 20:44:57 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: ryan/games#12