topics-fmt-fix
This commit is contained in:
parent
0748aa342c
commit
1c2b53cfe8
|
@ -19,7 +19,13 @@ export default (props: RouteSectionProps<{ topics: Topic[] }>) => {
|
||||||
const { t } = useLocalize()
|
const { t } = useLocalize()
|
||||||
const topics = createAsync<Topic[]>(async () => props.data.topics || (await fetchData()) || [])
|
const topics = createAsync<Topic[]>(async () => props.data.topics || (await fetchData()) || [])
|
||||||
const { addTopics } = useTopics()
|
const { addTopics } = useTopics()
|
||||||
createEffect(on(() => topics() || [], (ttt: Topic[]) => ttt && addTopics(ttt), { defer: true}))
|
createEffect(
|
||||||
|
on(
|
||||||
|
() => topics() || [],
|
||||||
|
(ttt: Topic[]) => ttt && addTopics(ttt),
|
||||||
|
{ defer: true }
|
||||||
|
)
|
||||||
|
)
|
||||||
return (
|
return (
|
||||||
<PageLayout
|
<PageLayout
|
||||||
withPadding={true}
|
withPadding={true}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user