From 04e60f2b3dcdd96890b72f04f1c08230186cdcd8 Mon Sep 17 00:00:00 2001 From: Adam <2363879+adamdotdevin@users.noreply.github.com> Date: Tue, 20 Jan 2026 06:10:35 -0600 Subject: [PATCH] fix(app): no flash of home page on start --- packages/app/src/pages/layout.tsx | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/packages/app/src/pages/layout.tsx b/packages/app/src/pages/layout.tsx index 816793753..5f5954c90 100644 --- a/packages/app/src/pages/layout.tsx +++ b/packages/app/src/pages/layout.tsx @@ -120,6 +120,17 @@ export default function Layout(props: ParentProps) { }) const editorRef = { current: undefined as HTMLInputElement | undefined } + const autoselecting = createMemo(() => { + if (params.dir) return false + if (initialDir) return false + if (!autoselect()) return false + if (!pageReady()) return true + if (!layoutReady()) return true + const list = layout.projects.list() + if (list.length === 0) return false + return true + }) + const editorOpen = (id: string) => editor.active === id const editorValue = () => editor.value @@ -2194,7 +2205,9 @@ export default function Layout(props: ParentProps) { "xl:border-l xl:rounded-tl-sm": !layout.sidebar.opened(), }} > - {props.children} + }> + {props.children} +