diff options
author | Paul Frazee <pfrazee@gmail.com> | 2023-04-03 19:50:46 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-03 19:50:46 -0500 |
commit | 25cc5b997f07daaeb64ef434992cb95892546ff5 (patch) | |
tree | 09531de05bbce7edddc9b5d48cb4cd56bdabcf90 /src/state/models/ui | |
parent | 50f7f9877ff000fac3a22d4432253f91657b7e61 (diff) | |
download | voidsky-25cc5b997f07daaeb64ef434992cb95892546ff5.tar.zst |
Rework the me.follows cache to reduce network load (#384)
Diffstat (limited to 'src/state/models/ui')
-rw-r--r-- | src/state/models/ui/search.ts | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/state/models/ui/search.ts b/src/state/models/ui/search.ts index 8436b0984..330283a0b 100644 --- a/src/state/models/ui/search.ts +++ b/src/state/models/ui/search.ts @@ -43,6 +43,9 @@ export class SearchUIModel { profiles = profiles.concat(res.data.profiles) } while (profilesSearch.length) } + + this.rootStore.me.follows.hydrateProfiles(profiles) + runInAction(() => { this.profiles = profiles this.isProfilesLoading = false |