about summary refs log tree commit diff
path: root/src/state/index.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2022-11-07 15:35:51 -0600
committerPaul Frazee <pfrazee@gmail.com>2022-11-07 15:35:51 -0600
commitd228a5f4f5d118f30129f3bafd676bfe0e80bf38 (patch)
treee292e9d3b1f7a027298308ef583a7d3b90b59157 /src/state/index.ts
parentb4097e25d67739c0ab6bc5b5f6ce8ee062796458 (diff)
downloadvoidsky-d228a5f4f5d118f30129f3bafd676bfe0e80bf38.tar.zst
Add onboarding (WIP)
Diffstat (limited to 'src/state/index.ts')
-rw-r--r--src/state/index.ts3
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)