desktop: Keep the local actor in the cache

The profile page reloaded its route after every write and only noticed
edits from other devices on navigation. Now writes and the node's
updates refetch the actor in place, like the rest of the cache.
This commit is contained in:
Rūdolfs Ošiņš
2026-11-20 19:32:17 +01:00
parent f87cbcfc94
commit a7c4ded104
14 changed files with 151 additions and 116 deletions
+2
View File
@@ -34,6 +34,8 @@ export const keys = {
// The repository list for one scope, with the seeded repositories that
// haven't arrived yet.
repoList: (scope: string) => ["repos", scope] as const,
// The local actor, which is found by scanning every repository's identity.
actor: () => ["actor"] as const,
notifications: () => ["notifications"] as const,
notificationCount: () => ["notifications", "count"] as const,
notificationList: () => ["notifications", "list"] as const,