Silent harmless AbortError (#13080)
This commit is contained in:
@@ -123,6 +123,10 @@ export const useSnackBar = () => {
|
||||
) & {
|
||||
options?: Omit<SnackBarOptions, 'message' | 'id'>;
|
||||
}) => {
|
||||
if (apolloError?.networkError?.name === 'AbortError') {
|
||||
return;
|
||||
}
|
||||
|
||||
const errorMessage = message
|
||||
? message
|
||||
: apolloError
|
||||
|
||||
Reference in New Issue
Block a user