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.