Add profile info caching
This commit is contained in:
parent
723dee5704
commit
6e93301542
3 changed files with 47 additions and 2 deletions
|
@ -33,8 +33,7 @@ export function UserInfoText({
|
|||
|
||||
useEffect(() => {
|
||||
let aborted = false
|
||||
// TODO use caching to reduce loads
|
||||
store.api.app.bsky.actor.getProfile({actor: did}).then(
|
||||
store.profiles.getProfile(did).then(
|
||||
v => {
|
||||
if (aborted) return
|
||||
setProfile(v.data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue