From 5b30ac8d83b043e816339c9545ed38c5693e5d8f Mon Sep 17 00:00:00 2001 From: Vishesh 'ironeagle' Bangotra Date: Fri, 28 Nov 2025 16:08:33 +0530 Subject: [PATCH] commenting open matches --- src/tictactoe/TicTacToe.tsx | 40 ++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/src/tictactoe/TicTacToe.tsx b/src/tictactoe/TicTacToe.tsx index d02b82b..c3174f2 100644 --- a/src/tictactoe/TicTacToe.tsx +++ b/src/tictactoe/TicTacToe.tsx @@ -38,24 +38,24 @@ export default function TicTacToe() { }); }, [onMatchData]); - useEffect(() => { - let active = true; - - async function refreshLoop() { - while (active) { - const matches = await listOpenMatches(); - setOpenMatches(matches); - - await new Promise(res => setTimeout(res, 500)); // 0.5s refresh - } - } - - refreshLoop(); - - return () => { - active = false; - }; - }, [listOpenMatches]); + // useEffect(() => { + // let active = true; + // + // async function refreshLoop() { + // while (active) { + // const matches = await listOpenMatches(); + // setOpenMatches(matches); + // + // await new Promise(res => setTimeout(res, 500)); // 0.5s refresh + // } + // } + // + // refreshLoop(); + // + // return () => { + // active = false; + // }; + // }, [listOpenMatches]); // ------------------------------------------ // CONNECT @@ -130,8 +130,8 @@ export default function TicTacToe() { {/* Join matchmaking */} - {/* List open matches */} - + {/*/!* List open matches *!/*/} + {/**/} )}