app: pre-warm project globalSync state when navigate project via keybind (#19088)

pull/13961/merge
Brendan Allan 2026-03-25 17:32:49 +08:00 committed by GitHub
parent 9717383823
commit 3ea72aec21
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -967,6 +967,8 @@ export default function Layout(props: ParentProps) {
: projects[(index + offset + projects.length) % projects.length]
if (!target) return
// warm up child store to prevent flicker
globalSync.child(target.worktree)
openProject(target.worktree)
}