kopia lustrzana https://github.com/cheeaun/phanpy
Parallelize the inits
rodzic
e4474d2d4d
commit
9031da2768
|
@ -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);
|
||||||
|
|
Ładowanie…
Reference in New Issue