Parallelize the inits

This commit is contained in:
Lim Chee Aun 2024-09-16 15:17:57 +08:00
parent e4474d2d4d
commit 9031da2768

View file

@ -410,8 +410,10 @@ function App() {
setUIState('loading'); setUIState('loading');
(async () => { (async () => {
try { try {
await initPreferences(client); await Promise.allSettled([
await initInstance(client, instance); initPreferences(client),
initInstance(client, instance),
]);
} catch (e) { } catch (e) {
} finally { } finally {
setIsLoggedIn(true); setIsLoggedIn(true);