pretty much ready to 'ship'.2

This commit is contained in:
cottongin
2025-10-30 17:34:44 -04:00
parent 8f3a12ad76
commit 1a74b4d777
4 changed files with 92 additions and 17 deletions

View File

@@ -31,7 +31,16 @@ function History() {
}
}, [sessions]);
// Poll for updates on active session
// Poll for session list updates (to detect when sessions end/start)
useEffect(() => {
const interval = setInterval(() => {
loadSessions();
}, 3000);
return () => clearInterval(interval);
}, []);
// Poll for updates on active session games
useEffect(() => {
if (!selectedSession) return;