only sync on startup

This commit is contained in:
Wang Guan 2024-10-19 19:49:16 +09:00
parent df7edbd7d0
commit a73a4c6dd6

View File

@ -250,7 +250,8 @@ export function Home() {
return () => {
running = false;
};
}, [syncStore]);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
if (!useHasHydrated()) {
return <Loading />;