🐛 fix: Fix bugs
This commit is contained in:
@@ -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}>
|
||||
|
||||
Reference in New Issue
Block a user