Clear all state on signout

This commit is contained in:
Paul Frazee 2022-09-29 13:55:07 -05:00
parent e3e4c4366c
commit 11f213ad09
6 changed files with 32 additions and 9 deletions

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