about summary refs log tree commit diff
path: root/src/state/models/root-store.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/state/models/root-store.ts')
-rw-r--r--src/state/models/root-store.ts6
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