Promote development → master (initial production release: pre-release line + Stage 18) #104
@@ -55,7 +55,11 @@
|
||||
void load();
|
||||
});
|
||||
$effect(() => {
|
||||
if (app.lastEvent) void load();
|
||||
// Refetch on a real game event only — not the 10 s keep-alive heartbeat. Refetching on every
|
||||
// heartbeat turned the lobby into a 10 s poll whose REST view of a just-committed opponent move
|
||||
// could update (and blink) a card seconds before the matching your_turn event/toast arrived
|
||||
// over the slower live stream; gating it keeps the card, its blink and the toast on one event.
|
||||
if (app.lastEvent && app.lastEvent.kind !== 'heartbeat') void load();
|
||||
});
|
||||
|
||||
const myId = $derived(app.session?.userId ?? '');
|
||||
|
||||
Reference in New Issue
Block a user