about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-08-15 12:55:51 -0700
committerGitHub <noreply@github.com>2023-08-15 12:55:51 -0700
commita5762c2d7df89bcb89588e2ab8969ea1e8945514 (patch)
treec08279d9f0bc17a565d7dbf1c8459c587339fe5b
parent331c50672855e0c8a830aa59c5c2ce8b51b60f0c (diff)
downloadvoidsky-a5762c2d7df89bcb89588e2ab8969ea1e8945514.tar.zst
Clear caches on session change (#1179)
-rw-r--r--src/state/models/me.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/state/models/me.ts b/src/state/models/me.ts
index e46c0e80f..186e61cf6 100644
--- a/src/state/models/me.ts
+++ b/src/state/models/me.ts
@@ -52,6 +52,8 @@ export class MeModel {
     this.mainFeed.clear()
     this.notifications.clear()
     this.follows.clear()
+    this.rootStore.profiles.cache.clear()
+    this.rootStore.posts.cache.clear()
     this.did = ''
     this.handle = ''
     this.displayName = ''