Clear all state on signout
This commit is contained in:
parent
e3e4c4366c
commit
11f213ad09
6 changed files with 32 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue