🐛 fix: Fix bugs

This commit is contained in:
web
2025-10-21 04:10:34 -07:00
parent c2bfee1f31
commit a46657d5ef
15 changed files with 276 additions and 19 deletions
+7
View File
@@ -1,6 +1,7 @@
'use client';
import useGlobalStore, { GlobalStore } from '@/config/use-global';
import { useStatsStore } from '@/store/stats';
import { Logout } from '@/utils/common';
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
import { ReactQueryStreamedHydration } from '@tanstack/react-query-next-experimental';
@@ -42,6 +43,12 @@ export default function Providers({
setCommon(common);
}, [setCommon, common]);
const { stats } = useStatsStore();
useEffect(() => {
stats();
}, []);
return (
<NextThemesProvider attribute='class' defaultTheme='system' enableSystem>
<QueryClientProvider client={queryClient}>