mirror of
https://github.com/anomalyco/opencode.git
synced 2026-08-12 20:13:26 +00:00
app: pre-warm project globalSync state when navigate project via keybind (#19088)
This commit is contained in:
parent
9717383823
commit
3ea72aec21
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue