diff options
Diffstat (limited to 'src/state/index.ts')
-rw-r--r-- | src/state/index.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/state/index.ts b/src/state/index.ts index 0716ab592..2c3df7d07 100644 --- a/src/state/index.ts +++ b/src/state/index.ts @@ -23,13 +23,14 @@ export async function setupState() { console.error('Failed to load state from storage', e) } + await rootStore.session.setup() + // track changes & save to storage autorun(() => { const snapshot = rootStore.serialize() storage.save(ROOT_STATE_STORAGE_KEY, snapshot) }) - await rootStore.session.setup() await rootStore.fetchStateUpdate() console.log(rootStore.me) |