optimize boot sequnse

This commit is contained in:
hansoo
2025-03-19 07:27:10 +09:00
parent ab3bcbdc63
commit 2ec913c6c0
12 changed files with 224 additions and 180 deletions

View File

@@ -2,7 +2,7 @@ import { useState, useEffect, useCallback } from 'react';
import { resetAllData } from '@/contexts/budget/storage';
import { resetAllStorageData } from '@/utils/storageUtils';
import { clearCloudData } from '@/utils/syncUtils';
import { useAuth } from '@/contexts/auth/AuthProvider';
import { useAuth } from '@/contexts/auth';
export const useDataInitialization = (resetBudgetData?: () => void) => {
const [isInitialized, setIsInitialized] = useState(false);

View File

@@ -4,7 +4,7 @@ import { useNavigate } from 'react-router-dom';
import { useToast } from '@/hooks/useToast.wrapper';
import { resetAllStorageData } from '@/utils/storageUtils';
import { clearCloudData } from '@/utils/sync/clearCloudData';
import { useAuth } from '@/contexts/auth/AuthProvider';
import { useAuth } from '@/contexts/auth';
import { isSyncEnabled, setSyncEnabled } from '@/utils/sync/syncSettings';
export interface DataResetResult {