diff options
Diffstat (limited to 'src/state/models/root-store.ts')
-rw-r--r-- | src/state/models/root-store.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/state/models/root-store.ts b/src/state/models/root-store.ts index 59bed4a6a..33f4f4085 100644 --- a/src/state/models/root-store.ts +++ b/src/state/models/root-store.ts @@ -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 |