From b04e1de8a6dfc8e5f168e96ecaea7902c4bc6cb8 Mon Sep 17 00:00:00 2001 From: Hyungi Ahn Date: Fri, 3 Apr 2026 09:01:00 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Svelte=205=20runes=20mode=20=ED=98=B8?= =?UTF-8?q?=ED=99=98=20($:=20=E2=86=92=20$derived/$effect)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- frontend/src/routes/+layout.svelte | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/routes/+layout.svelte b/frontend/src/routes/+layout.svelte index 87881eb..3ab1673 100644 --- a/frontend/src/routes/+layout.svelte +++ b/frontend/src/routes/+layout.svelte @@ -20,14 +20,14 @@ authChecked = true; }); - $: { + $effect(() => { if (browser && authChecked && !$isAuthenticated && !PUBLIC_PATHS.some(p => $page.url.pathname.startsWith(p))) { goto('/login'); } - } + }); // 사이드바 표시 여부 - $: showSidebar = $isAuthenticated && !NO_SIDEBAR_PATHS.some(p => $page.url.pathname.startsWith(p)); + let showSidebar = $derived($isAuthenticated && !NO_SIDEBAR_PATHS.some(p => $page.url.pathname.startsWith(p))); // 키보드 단축키 function handleKeydown(e) {