From d51641036e060d63b7810778ea73c6d0c0d3fd2c Mon Sep 17 00:00:00 2001 From: isy Date: Wed, 6 Nov 2024 14:36:40 +0900 Subject: [PATCH] Add hasNext to urql-next query-state (#3707) --- .changeset/tiny-tigers-lick.md | 5 +++++ packages/next-urql/src/useQuery.ts | 2 ++ 2 files changed, 7 insertions(+) create mode 100644 .changeset/tiny-tigers-lick.md diff --git a/.changeset/tiny-tigers-lick.md b/.changeset/tiny-tigers-lick.md new file mode 100644 index 0000000000..76b4ab80bc --- /dev/null +++ b/.changeset/tiny-tigers-lick.md @@ -0,0 +1,5 @@ +--- +'@urql/next': patch +--- + +Add type for hasNext to the query-state in urql-next diff --git a/packages/next-urql/src/useQuery.ts b/packages/next-urql/src/useQuery.ts index 7fd25efe91..a335bf0b15 100644 --- a/packages/next-urql/src/useQuery.ts +++ b/packages/next-urql/src/useQuery.ts @@ -110,6 +110,8 @@ export interface UseQueryState< data?: Data; /** The {@link OperationResult.error} for the executed query. */ error?: CombinedError; + /** The {@link OperationResult.hasNext} for the executed query. */ + hasNext: boolean; /** The {@link OperationResult.extensions} for the executed query. */ extensions?: Record; /** The {@link Operation} that the current state is for.