fix: show finished games on watch page instead of hanging spinner #16

Merged
lq64 merged 1 commits from fix-finished-games into main 2026-06-29 09:47:41 +02:00

1 Commits

Author SHA1 Message Date
LQ63 076ff17281 fix: show finished games on watch page instead of hanging spinner
Previously, navigating to a finished game caused the watch page to spin
forever because the stream never delivers events for finished games.

Fix by fetching the full game state via REST on load (GET .../game/{gameId}),
applying it immediately to the board, and only starting the stream subscription
if the game is still ongoing or pending.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-28 19:52:05 +02:00