Skip to content

Commit

Permalink
Merge pull request #26 from CreoWis/25-comment-hook-fix
Browse files Browse the repository at this point in the history
Comment-hook fixed
  • Loading branch information
atapas authored Jan 31, 2024
2 parents c94a868 + a9c64bc commit 2be5515
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hashnode-client",
"version": "1.0.2",
"version": "1.0.3",
"type": "module",
"description": "A JavaScript client for the Headless Hashnode. The package contains helpful ReactJS hooks to use blog data using its GraphQL APIs.",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion package/src/useHashnodeComments.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default function useHashnodeComments(settings = {}) {
}, [host, first, endCursor, slug]);

const loadMoreComments = useCallback(() => {
getCommentsForPost(host, slug, first, endCursor, true);
getCommentsForPost(host, slug, first, pageInfo.endCursor, true);
}, [pageInfo.endCursor]);

return {
Expand Down

0 comments on commit 2be5515

Please sign in to comment.