Log boundary errors to console (#11125)
This commit is contained in:
parent
dbc8b7241d
commit
ec0fd650ca
|
|
@ -28,6 +28,7 @@ export function Boundary({
|
|||
const onError = useCallback(
|
||||
(error: unknown, componentStack: string | undefined, eventId: string) => {
|
||||
console.error(`ERR: Error rendering component: ${label}`);
|
||||
console.error(error);
|
||||
},
|
||||
[]
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue