From b2fb996a37fa6d324dcf6f5933cbb18171140953 Mon Sep 17 00:00:00 2001 From: Ou Date: Mon, 4 Nov 2024 21:43:31 +0800 Subject: [PATCH] fix: multiple automatic changes of index column --- src/routes/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/routes/index.tsx b/src/routes/index.tsx index ff69932..e8aa40b 100644 --- a/src/routes/index.tsx +++ b/src/routes/index.tsx @@ -8,5 +8,7 @@ export const Route = createFileRoute("/")({ function IndexComponent() { const focusSources = useAtomValue(focusSourcesAtom) - return + // eslint-disable-next-line react-hooks/exhaustive-deps + const id = useMemo(() => focusSources.length ? "focus" : "hottest", []) + return }