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 (