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

This commit is contained in:
Brendan Allan
2026-03-25 17:32:49 +08:00
committed by GitHub
parent 9717383823
commit 3ea72aec21

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)
}