diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-03-06 15:40:52 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2023-03-06 15:40:52 -0600 |
commit | bb6bd905c20473d153fd5f43f77f534fa0eb6409 (patch) | |
tree | 4610343bba55c78e5009e586e0b850a03ee34a76 | |
parent | e069bde75c0a1ee18a2c226ebc21e193acee9e0e (diff) | |
download | voidsky-bb6bd905c20473d153fd5f43f77f534fa0eb6409.tar.zst |
Fix: fetch follows before everything else to avoid rendering follow buttons wrongly
-rw-r--r-- | src/state/models/me.ts | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/state/models/me.ts b/src/state/models/me.ts index 451d562a4..0f3acc70b 100644 --- a/src/state/models/me.ts +++ b/src/state/models/me.ts @@ -97,17 +97,17 @@ export class MeModel { } }) this.mainFeed.clear() - await Promise.all([ - this.mainFeed.setup().catch(e => { - this.rootStore.log.error('Failed to setup main feed model', e) - }), - this.notifications.setup().catch(e => { - this.rootStore.log.error('Failed to setup notifications model', e) - }), - this.follows.fetch().catch(e => { - this.rootStore.log.error('Failed to load my follows', e) - }), - ]) + await this.follows.fetch().catch(e => { + this.rootStore.log.error('Failed to load my follows', e) + }), + await Promise.all([ + this.mainFeed.setup().catch(e => { + this.rootStore.log.error('Failed to setup main feed model', e) + }), + this.notifications.setup().catch(e => { + this.rootStore.log.error('Failed to setup notifications model', e) + }), + ]) this.rootStore.emitSessionLoaded() } else { this.clear() |