mirror of
https://github.com/cheeaun/phanpy.git
synced 2024-11-21 16:55:25 +03:00
Parallelize the inits
This commit is contained in:
parent
e4474d2d4d
commit
9031da2768
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue