add error to the console for debugging (#33041)

fixes: #33040

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
Erik Jan de Wit 2024-09-18 15:53:28 +02:00 committed by GitHub
parent f1ec0a9bb6
commit 9e42e8013d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -33,6 +33,7 @@ export function useFetch<T>(
} }
}) })
.catch((error) => { .catch((error) => {
console.error(error);
if (!signal.aborted) { if (!signal.aborted) {
showBoundary(error); showBoundary(error);
} }