Silent harmless AbortError (#13080)

This commit is contained in:
Marie
2025-07-07 17:26:20 +02:00
committed by GitHub
parent c6e5bab4e9
commit e4120cdce3
2 changed files with 7 additions and 1 deletions

View File

@ -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');

View File

@ -123,6 +123,10 @@ export const useSnackBar = () => {
) & {
options?: Omit<SnackBarOptions, 'message' | 'id'>;
}) => {
if (apolloError?.networkError?.name === 'AbortError') {
return;
}
const errorMessage = message
? message
: apolloError