Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import webVitalsService from './src/services/webVitals';
import { handleCacheVersionUpdate } from './src/utils/cacheVersioning';
import { appLogger, logger } from './src/utils/logger';
import { handleNotificationReceived } from './src/utils/notificationHandlers';
import { prefetchExternalResources } from './src/utils/resourceHints';
import { warmCriticalCaches } from './src/services/cacheWarming';

// Keep the splash screen visible while we fetch resources
SplashScreen.preventAutoHideAsync();
Expand Down Expand Up @@ -106,12 +106,7 @@ const App = () => {
await new Promise(resolve => setTimeout(resolve, 300));
startupProgressService.completeStep('auth');

// 4. Initial data fetch (simulate or add real fetch)
startupProgressService.startStep('data');
await new Promise(resolve => setTimeout(resolve, 500));
startupProgressService.completeStep('data');

// 5. Warm critical caches (user profile + home feed) in parallel
// 3. Warm critical caches (user profile + home feed) in parallel
await warmCriticalCaches();
} catch (e) {
console.warn('Error during app initialization:', e);
Expand Down
Loading