Clear all state on signout

This commit is contained in:
Paul Frazee
2022-09-29 13:55:07 -05:00
parent 13ce232455
commit 2f7e3da138
6 changed files with 32 additions and 9 deletions
+6
View File
@@ -55,6 +55,12 @@ export class RootStoreModel {
}
}
}
clearAll() {
this.session.clear()
this.nav.clear()
this.me.clear()
}
}
const throwawayInst = new RootStoreModel(AdxApi.service('http://localhost')) // this will be replaced by the loader