Skip to content

Commit

Permalink
Log async on{Completed,Error} exceptions as warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamn committed Jun 27, 2022
1 parent c65539c commit c212346
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/react/hooks/useQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,8 @@ class InternalState<TData, TVariables> {
} else if (result.data) {
this.onCompleted(result.data);
}
}).catch(error => {
invariant.warn(error);
});
}
}
Expand Down

0 comments on commit c212346

Please sign in to comment.