Do not report GraphQL errors from urql (#673)

This commit is contained in:
Kamil Kisiela 2022-11-23 10:17:15 +01:00 committed by GitHub
parent bc765afa9e
commit 5fc99b71a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,5 @@
import { createClient, dedupExchange, errorExchange, fetchExchange } from 'urql';
import { cacheExchange } from '@urql/exchange-graphcache';
import { captureException } from '@sentry/nextjs';
import { Mutation } from './urql-cache';
import { networkStatusExchange } from './urql-exchanges/state';
@ -49,8 +48,6 @@ export const urqlClient = createClient({
onError(error) {
if (error.response?.status === 401) {
window.location.href = '/logout';
} else {
captureException(error);
}
},
}),