Skip to content

Commit

Permalink
Add hasNext to urql-next query-state (#3707)
Browse files Browse the repository at this point in the history
  • Loading branch information
isy authored Nov 6, 2024
1 parent 9c561f3 commit d516410
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/tiny-tigers-lick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@urql/next': patch
---

Add type for hasNext to the query-state in urql-next
2 changes: 2 additions & 0 deletions packages/next-urql/src/useQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string, any>;
/** The {@link Operation} that the current state is for.
Expand Down

0 comments on commit d516410

Please sign in to comment.