fixed-comments

This commit is contained in:
tonyrewin 2022-11-24 10:33:16 +03:00
parent 48153582fe
commit fe066b7e3f
2 changed files with 9 additions and 5 deletions

View File

@ -14,7 +14,7 @@ interface ArticlePageProps {
const ARTICLE_COMMENTS_PAGE_SIZE = 50
export const ArticleView = (props: ArticlePageProps) => {
const [getCommentsPage] = createSignal(1)
const [getCommentsPage] = createSignal(0)
const [getIsCommentsLoading, setIsCommentsLoading] = createSignal(false)
const { reactionsByShout, loadReactionsBy } = useReactionsStore({ reactions: props.reactions })

View File

@ -4,14 +4,18 @@ export default gql`
query LoadReactions($by: ReactionBy!, $limit: Int, $offset: Int) {
loadReactionsBy(by: $by, limit: $limit, offset: $offset) {
id
shout {
title
}
body
createdAt
range
replyTo {
id
# kind
}
createdBy {
name
slug
userpic
}
createdAt
updatedAt
}
}