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');
(async () => {
try {
await initPreferences(client);
await initInstance(client, instance);
await Promise.allSettled([
initPreferences(client),
initInstance(client, instance),
]);
} catch (e) {
} finally {
setIsLoggedIn(true);