undefer-fix

This commit is contained in:
Untone 2024-08-28 08:12:44 +03:00
parent e695c7847f
commit 3d2125d99f

View File

@ -61,6 +61,7 @@ export default function TopicPage(props: RouteSectionProps<TopicPageProps>) {
const [title, setTitle] = createSignal<string>('')
const [desc, setDesc] = createSignal<string>('')
const [cover, setCover] = createSignal<string>('')
createEffect(on([topics, () => window], ([ttt, win]) => {
if (ttt && win) {
// console.debug('all topics:', ttt)
@ -85,7 +86,7 @@ export default function TopicPage(props: RouteSectionProps<TopicPageProps>) {
page_path: window?.location.pathname
})
}
}, { defer: true }))
}, {}))
return (
<Show