Something went wrong. Try again.
Monorepo for the nibling.run platform
Something went wrong. Try again.
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 (Nov 16, 2026, 5:10 AM UTC) Commit
Copy SHA
Parent 9d7d8662 9d7d8662e898acd8f81ea0b59b70d2a08bb52c60