Skip to content

Commit

Permalink
fixup generic Query HOC types
Browse files Browse the repository at this point in the history
  • Loading branch information
phryneas committed Sep 22, 2023
1 parent 80b52fc commit dbbbd10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react/components/Query.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export function Query<
TVariables extends OperationVariables = OperationVariables,
>(props: QueryComponentOptions<TData, TVariables>) {
const { children, query, ...options } = props;
const result = useQuery(query, options);
const result = useQuery<unknown, OperationVariables>(query, options);
return result ? children(result as any) : null;
}

Expand Down

0 comments on commit dbbbd10

Please sign in to comment.