about summary refs log tree commit diff
path: root/src/state/models/me.ts
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-03-21 12:59:10 -0500
committerGitHub <noreply@github.com>2023-03-21 12:59:10 -0500
commit858d4c8c8811ca8e16bffe3bfe0d541e576177ec (patch)
tree8199e1029edb7161c34fb59806399c30fcdd61a3 /src/state/models/me.ts
parentc1d454b7cfe6a7ec107b39483df9cb0fb64e1c76 (diff)
downloadvoidsky-858d4c8c8811ca8e16bffe3bfe0d541e576177ec.tar.zst
Introduce an image sizes cache to improve feed layouts (close #213) (#335)
* Introduce an image sizes cache to improve feed layouts (close #213)

* Clear out resolved promises from the image cache
Diffstat (limited to 'src/state/models/me.ts')
-rw-r--r--src/state/models/me.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/state/models/me.ts b/src/state/models/me.ts
index 192e8f19f..120749155 100644
--- a/src/state/models/me.ts
+++ b/src/state/models/me.ts
@@ -2,7 +2,7 @@ import {makeAutoObservable, runInAction} from 'mobx'
 import {RootStoreModel} from './root-store'
 import {FeedModel} from './feed-view'
 import {NotificationsViewModel} from './notifications-view'
-import {MyFollowsModel} from './my-follows'
+import {MyFollowsCache} from './cache/my-follows'
 import {isObj, hasProp} from 'lib/type-guards'
 
 export class MeModel {
@@ -15,7 +15,7 @@ export class MeModel {
   followersCount: number | undefined
   mainFeed: FeedModel
   notifications: NotificationsViewModel
-  follows: MyFollowsModel
+  follows: MyFollowsCache
 
   constructor(public rootStore: RootStoreModel) {
     makeAutoObservable(
@@ -27,7 +27,7 @@ export class MeModel {
       algorithm: 'reverse-chronological',
     })
     this.notifications = new NotificationsViewModel(this.rootStore, {})
-    this.follows = new MyFollowsModel(this.rootStore)
+    this.follows = new MyFollowsCache(this.rootStore)
   }
 
   clear() {