Application content or splash screen.
export default function App() {
// State tracks if storage is ready; normally true immediately
// Used to handle strict mode remounting in development
const [isStorageReady, setIsStorageReady] = React.useState(true);
React.useEffect(() => {
// Storage should already be initialized by renderer.ts before App mounts
// This state ensures proper hydration in React strict mode
setIsStorageReady(true);
}, []);
if (!isStorageReady) {
return <StorageSplash />;
}
return <AppContent />;
}
Application wrapper component. Ensures storage is initialized and handles React strict mode rendering. Storage initialization occurs in renderer.ts before this component mounts.