diff --git a/src/shell/ContentArea.tsx b/src/shell/ContentArea.tsx index 6e89e69..b41f5ae 100644 --- a/src/shell/ContentArea.tsx +++ b/src/shell/ContentArea.tsx @@ -9,6 +9,7 @@ import { refreshSidebar, setGridRowHeight, setView, + sidebarVersion, snapshot, updateScanProgress, view, @@ -31,8 +32,12 @@ export const ContentArea: Component = () => { }; onCleanup(() => clearTimeout(debounce)); - // 소스가 하나도 없으면 온보딩 표시 - const [sources] = createResource(listSources); + // 소스가 하나도 없으면 온보딩 표시. 소스 추가/제거(sidebarVersion) 시 재조회해 + // 첫 소스를 추가하면 재시작 없이 즉시 그리드로 전환된다. + const [sources] = createResource( + () => sidebarVersion(), + () => listSources(), + ); const isEmpty = () => sources() && sources()!.length === 0; const addLocal = async () => {