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 const ARTICLE_COMMENTS_PAGE_SIZE = 50
export const ArticleView = (props: ArticlePageProps) => { export const ArticleView = (props: ArticlePageProps) => {
const [getCommentsPage] = createSignal(1) const [getCommentsPage] = createSignal(0)
const [getIsCommentsLoading, setIsCommentsLoading] = createSignal(false) const [getIsCommentsLoading, setIsCommentsLoading] = createSignal(false)
const { reactionsByShout, loadReactionsBy } = useReactionsStore({ reactions: props.reactions }) const { reactionsByShout, loadReactionsBy } = useReactionsStore({ reactions: props.reactions })

View File

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