From 3d2125d99f294634f13dbca2892e1743ba66a054 Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 28 Aug 2024 08:12:44 +0300 Subject: [PATCH] undefer-fix --- src/routes/topic/[slug]/[...tab].tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/topic/[slug]/[...tab].tsx b/src/routes/topic/[slug]/[...tab].tsx index edb033d5..3110e436 100644 --- a/src/routes/topic/[slug]/[...tab].tsx +++ b/src/routes/topic/[slug]/[...tab].tsx @@ -61,6 +61,7 @@ export default function TopicPage(props: RouteSectionProps) { const [title, setTitle] = createSignal('') const [desc, setDesc] = createSignal('') const [cover, setCover] = createSignal('') + createEffect(on([topics, () => window], ([ttt, win]) => { if (ttt && win) { // console.debug('all topics:', ttt) @@ -85,7 +86,7 @@ export default function TopicPage(props: RouteSectionProps) { page_path: window?.location.pathname }) } - }, { defer: true })) + }, {})) return (