Improve the profile preview with "swipe up to view" and local cache optimization (#1096)
* Update the ProfilePreview to use a swipe-up to navigate * Use the profile cache to optimize load performance * Hack to align the header in the profile preview against the screen view * Fix profiles cache logic to ensure cache is used * Fix dark mode on profile preview
This commit is contained in:
parent
1211c353d0
commit
96280d5f1a
7 changed files with 98 additions and 61 deletions
4
src/state/models/cache/profiles-view.ts
vendored
4
src/state/models/cache/profiles-view.ts
vendored
|
|
@ -45,8 +45,6 @@ export class ProfilesCache {
|
|||
}
|
||||
|
||||
overwrite(did: string, res: GetProfile.Response) {
|
||||
if (this.cache.has(did)) {
|
||||
this.cache.set(did, res)
|
||||
}
|
||||
this.cache.set(did, res)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue