From c786c8a546cefb7a415ec9af15c496b1ae3cee64 Mon Sep 17 00:00:00 2001 From: Chaitanya Agarwal Date: Tue, 23 Jan 2024 22:38:38 +0530 Subject: [PATCH 1/2] comments-fixed --- package/package.json | 2 +- package/src/useHashnodeComments.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package/package.json b/package/package.json index 8603321..e05feb6 100644 --- a/package/package.json +++ b/package/package.json @@ -1,6 +1,6 @@ { "name": "hashnode-client", - "version": "1.0.2", + "version": "1.0.21", "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": { diff --git a/package/src/useHashnodeComments.js b/package/src/useHashnodeComments.js index 41919ec..c8d4c12 100644 --- a/package/src/useHashnodeComments.js +++ b/package/src/useHashnodeComments.js @@ -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 { From a9c64bcb3e04e8ceaca2307c05c82a9c2b85a6b2 Mon Sep 17 00:00:00 2001 From: Chaitanya Agarwal <41801340+MrTea7171@users.noreply.github.com> Date: Sun, 28 Jan 2024 14:36:35 +0530 Subject: [PATCH 2/2] Update package.json --- package/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/package.json b/package/package.json index e05feb6..6cecb8f 100644 --- a/package/package.json +++ b/package/package.json @@ -1,6 +1,6 @@ { "name": "hashnode-client", - "version": "1.0.21", + "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": {