Skip to content

Commit

Permalink
Use QueryResultAlias everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
kimadeline committed Sep 29, 2020
1 parent 6c570d8 commit d74973c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/web/src/graphql/withCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,7 @@ export const withCell = ({
query={typeof QUERY === 'function' ? QUERY(beforeQuery(props)) : QUERY}
{...beforeQuery(props)}
>
{({
error,
loading,
data,
...queryRest
}: QueryResult<any, Record<string, any>>) => {
{({ error, loading, data, ...queryRest }: QueryResultAlias) => {
if (error) {
if (Failure) {
return <Failure error={error} {...queryRest} {...props} />
Expand Down

0 comments on commit d74973c

Please sign in to comment.