load-comments-fix
This commit is contained in:
parent
cfca2dbbab
commit
2103db3ebd
|
@ -144,22 +144,16 @@ export const AuthorView = (props: Props) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const [commented, setCommented] = createSignal<Reaction[]>([])
|
const [commented, setCommented] = createSignal<Reaction[]>([])
|
||||||
createEffect(
|
createEffect(() => {
|
||||||
on(
|
if (author() && getPage().route === 'authorComments') {
|
||||||
author,
|
console.debug('[components.Author] routed to comments')
|
||||||
(a: Author) => {
|
try {
|
||||||
if (getPage().route === 'authorComments') {
|
fetchComments(author())
|
||||||
console.debug('[components.Author] routed to comments')
|
} catch (error) {
|
||||||
try {
|
console.error('[components.Author] fetch error', error)
|
||||||
if (a) fetchComments(a)
|
}
|
||||||
} catch (error) {
|
}
|
||||||
console.error('[components.Author] fetch error', error)
|
})
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{ defer: true },
|
|
||||||
),
|
|
||||||
)
|
|
||||||
|
|
||||||
const ogImage = createMemo(() =>
|
const ogImage = createMemo(() =>
|
||||||
author()?.pic
|
author()?.pic
|
||||||
|
|
Loading…
Reference in New Issue
Block a user