From 6f5bb61ea61dfaa3e56c06da931da5c142f4a6ca Mon Sep 17 00:00:00 2001 From: spidunno Date: Mon, 27 May 2024 21:58:02 -0400 Subject: [PATCH] made better --- src/App.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 832aa2e..67ea915 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -51,9 +51,9 @@ export default function App() { // useEffect(() => { // if(commandGeneratorFunction) setCommandGenerator(commandGeneratorFunction(items)); // }, [commandGenerator]) - createEffect(() => { - setItems([...Array(itemCount()).keys()].sort(() => Math.random() - 0.5)); - }, [itemCount()]); + // createEffect(() => { + // setItems([...Array(itemCount()).keys()].sort(() => Math.random() - 0.5)); + // }, [itemCount()]); createEffect(() => { if (interval) clearInterval(interval); const gen = commandGenerator(); @@ -277,7 +277,7 @@ export default function App() { {/* /> */} {sortPlaying() ? : } - setItemCount(parseInt(e.target.value))}/> + {setItemCount(parseInt(e.target.value)); reset()}}/>