refactor(app): rename cached context accessors (#33627)

This commit is contained in:
Brendan Allan 2026-06-24 16:55:57 +08:00 committed by GitHub
commit cacb7d045f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
14 changed files with 30 additions and 30 deletions

View file

@ -91,7 +91,7 @@ export function SessionComposerRegion(props: {
})
const projectServerCtx = createMemo(() => {
const conn = projectServer()
if (conn) return global.createServerCtx(conn)
if (conn) return global.ensureServerCtx(conn)
})
const projects = createMemo(() =>
search.draftId ? (projectServerCtx()?.projects.list() ?? []) : layout.projects.list(),