fixed-comments
This commit is contained in:
parent
48153582fe
commit
fe066b7e3f
|
@ -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 })
|
||||||
|
|
||||||
|
|
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user