From 3744454076df33395e51c2664d254d9119cd4c23 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath <2+defunkt@users.noreply.github.com> Date: Mon, 9 Feb 2026 11:57:02 -0800 Subject: [PATCH] fix variable shadow bug --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index ab87f82..7343054 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -201,7 +201,7 @@ export class Hype< let Layout = defaultLayout const layoutPath = join(process.env.PWD ?? '.', `./src/pages/_layout.tsx`) if (await Bun.file(layoutPath).exists()) { - let Layout = pageCache.get(layoutPath) + Layout = pageCache.get(layoutPath) if (!Layout) { Layout = (await import(layoutPath + `?t=${Date.now()}`)).default pageCache.set(layoutPath, Layout)