Skip to content

Commit 3ea72ae

Browse files
authored
app: pre-warm project globalSync state when navigate project via keybind (#19088)
1 parent 9717383 commit 3ea72ae

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/app/src/pages/layout.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -967,6 +967,8 @@ export default function Layout(props: ParentProps) {
967967
: projects[(index + offset + projects.length) % projects.length]
968968
if (!target) return
969969

970+
// warm up child store to prevent flicker
971+
globalSync.child(target.worktree)
970972
openProject(target.worktree)
971973
}
972974

0 commit comments

Comments
 (0)