mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 06:06:41 +01: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');
|
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);
|
||||||
|
|
Loading…
Reference in a new issue