update
This commit is contained in:
parent
b9f7d01339
commit
ac39230271
|
@ -113,12 +113,7 @@ export const AuthorView = (props: Props) => {
|
||||||
onMount(() => {
|
onMount(() => {
|
||||||
if (!modal) hideModal()
|
if (!modal) hideModal()
|
||||||
checkBioHeight()
|
checkBioHeight()
|
||||||
fetchData(props.authorSlug)
|
loadMore()
|
||||||
|
|
||||||
// pagination
|
|
||||||
if (sortedArticles().length === PRERENDERED_ARTICLES_COUNT) {
|
|
||||||
loadMore()
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const pages = createMemo<Shout[][]>(() =>
|
const pages = createMemo<Shout[][]>(() =>
|
||||||
|
@ -132,12 +127,17 @@ export const AuthorView = (props: Props) => {
|
||||||
setCommented(data)
|
setCommented(data)
|
||||||
}
|
}
|
||||||
|
|
||||||
createEffect(() => {
|
const authorSlug = createMemo(() => author()?.slug)
|
||||||
if (author()) {
|
createEffect(
|
||||||
fetchData(author().slug)
|
on(
|
||||||
fetchComments(author())
|
() => authorSlug(),
|
||||||
}
|
(slug) => {
|
||||||
})
|
fetchData(slug)
|
||||||
|
fetchComments(author())
|
||||||
|
},
|
||||||
|
{ defer: true },
|
||||||
|
),
|
||||||
|
)
|
||||||
|
|
||||||
const ogImage = createMemo(() =>
|
const ogImage = createMemo(() =>
|
||||||
author()?.pic
|
author()?.pic
|
||||||
|
|
Loading…
Reference in New Issue
Block a user