Add onboarding (WIP)

This commit is contained in:
Paul Frazee 2022-11-07 15:35:51 -06:00
parent b4097e25d6
commit d228a5f4f5
15 changed files with 613 additions and 34 deletions

View file

@ -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)