pretty much ready to 'ship'.2
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user