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