From d5179aee03932f1b8d7603ed0850c07d4bcdcd2f Mon Sep 17 00:00:00 2001 From: Sorin Muntean Date: Wed, 27 Mar 2024 16:19:53 +0100 Subject: [PATCH] Update src/usePromise.ts Co-authored-by: Mathieu Dutour --- src/usePromise.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/usePromise.ts b/src/usePromise.ts index c7af2c4..2d2400f 100644 --- a/src/usePromise.ts +++ b/src/usePromise.ts @@ -204,7 +204,7 @@ export function usePromise; hasMore: boolean }) => { + ({ data, hasMore, cursor }: { data: UnwrapReturn; hasMore: boolean; cursor?: any }) => { if (callId === lastCallId.current) { if (paginationArgsRef.current) { paginationArgsRef.current.cursor = cursor;