Invalidate profiles cache on direct load
This commit is contained in:
parent
0d70a09777
commit
5d7f3e1863
2 changed files with 7 additions and 0 deletions
|
|
@ -140,6 +140,7 @@ export class ProfileViewModel {
|
|||
const res = await this.rootStore.api.app.bsky.actor.getProfile(
|
||||
this.params,
|
||||
)
|
||||
this.rootStore.profiles.overwrite(this.params.actor, res) // cache invalidation
|
||||
this._replaceAll(res)
|
||||
this._xIdle()
|
||||
} catch (e: any) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue