Skip to content

Commit

Permalink
Removing onCompleted and onError from the useQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandcote committed Jun 27, 2023
1 parent 74eb82a commit 20789f2
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/breezy-dolphins-exercise.md
@@ -0,0 +1,5 @@
---
'@shopify/react-graphql': patch
---

Remove `onCompleted` and `onError` from the types on `useQuery`'s options as they are not implemented
7 changes: 6 additions & 1 deletion packages/react-graphql/src/hooks/types.ts
Expand Up @@ -13,7 +13,12 @@ import type {VariableOptions} from '../types';

export type QueryHookOptions<Data = any, Variables = OperationVariables> = Omit<
QueryComponentOptions<Data, Variables>,
'query' | 'partialRefetch' | 'children' | 'variables'
| 'query'
| 'partialRefetch'
| 'children'
| 'variables'
| 'onCompleted'
| 'onError'
> &
VariableOptions<Variables> & {
skip?: boolean;
Expand Down

0 comments on commit 20789f2

Please sign in to comment.