Silent harmless AbortError (#13080)

This commit is contained in:
Marie
2025-07-07 21:17:24 +02:00
committed by Charles Bochet
parent fe68dc2642
commit 29893cf994
2 changed files with 7 additions and 1 deletions
@@ -24,7 +24,9 @@ export const PromiseRejectionEffect = () => {
return; // already handled by apolloLink
}
enqueueErrorSnackBar({});
if (error.networkError?.name !== 'AbortError') {
enqueueErrorSnackBar({});
}
try {
const { captureException } = await import('@sentry/react');
@@ -123,6 +123,10 @@ export const useSnackBar = () => {
) & {
options?: Omit<SnackBarOptions, 'message' | 'id'>;
}) => {
if (apolloError?.networkError?.name === 'AbortError') {
return;
}
const errorMessage = message
? message
: apolloError