import * as React from 'react' ; import { ComponentProps } from '@client/utils/react' ; import { Query as ApolloQuery } from 'react-apollo' ; import * as Sentry from '@sentry/browser' ; type Props = ComponentProps < ApolloQuery > ; export function Query ( props ) { return ( < ApolloQuery onError = { ( error ) => { Sentry . captureException ( error ) ; } } { ... props } />); }