mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-22 13:49:23 +01:00
Fix this deja vu bug, Flash of Welcome Page (FOWP)
This commit is contained in:
parent
a4df58d297
commit
14c994c7ba
1 changed files with 8 additions and 2 deletions
|
@ -109,9 +109,15 @@ function App() {
|
||||||
store.session.set('currentAccount', account.info.id);
|
store.session.set('currentAccount', account.info.id);
|
||||||
const { masto } = api({ account });
|
const { masto } = api({ account });
|
||||||
initPreferences(masto);
|
initPreferences(masto);
|
||||||
|
setUIState('loading');
|
||||||
(async () => {
|
(async () => {
|
||||||
|
try {
|
||||||
await initInstance(masto);
|
await initInstance(masto);
|
||||||
|
} catch (e) {
|
||||||
|
} finally {
|
||||||
setIsLoggedIn(true);
|
setIsLoggedIn(true);
|
||||||
|
setUIState('default');
|
||||||
|
}
|
||||||
})();
|
})();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue