fix user posts/comments fetchMore
This commit is contained in:
parent
e97951dd18
commit
751abaa1ad
@ -48,7 +48,7 @@ export default function getApolloClient () {
|
|||||||
return {
|
return {
|
||||||
cursor: incoming.cursor,
|
cursor: incoming.cursor,
|
||||||
items: [...(existing?.items || []), ...incoming.items],
|
items: [...(existing?.items || []), ...incoming.items],
|
||||||
pins: existing?.pins
|
pins: existing?.pins || null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -23,7 +23,7 @@ export default function UserComments (
|
|||||||
<UserHeader user={user} />
|
<UserHeader user={user} />
|
||||||
<CommentsFlat
|
<CommentsFlat
|
||||||
comments={comments} cursor={cursor}
|
comments={comments} cursor={cursor}
|
||||||
variables={{ name: user.name }} includeParent noReply
|
variables={{ name: user.name, sort: 'user' }} includeParent noReply
|
||||||
/>
|
/>
|
||||||
</Layout>
|
</Layout>
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user