diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-11-07 15:35:51 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-11-07 15:35:51 -0600 |
commit | d228a5f4f5d118f30129f3bafd676bfe0e80bf38 (patch) | |
tree | e292e9d3b1f7a027298308ef583a7d3b90b59157 /src/state/index.ts | |
parent | b4097e25d67739c0ab6bc5b5f6ce8ee062796458 (diff) | |
download | voidsky-d228a5f4f5d118f30129f3bafd676bfe0e80bf38.tar.zst |
Add onboarding (WIP)
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) |