Monorepo for the nibling.run platform

Cache actorProfile per DID for the page's lifetime

describe() (sign-in, restore, the account switcher) and the actor page both call actorProfile(did) on a typical navigation, with no sharing, so every one of those re-reads the same two records. Cache the lookup in the SDK, where actorProfile and setProfile already live: concurrent callers for the same DID share one in-flight request, a failed lookup is dropped so the next call retries, and setProfile forgets the session's own cached entry so a read right after a save sees the write.


Author natemoo.re
Date Commit Parent 9d7d8662
+65 -2
2 changed files
+65 -2
2 changed files