Log boundary errors to console (#11125)

This commit is contained in:
Oliver 2026-01-13 17:19:08 +11:00 committed by GitHub
parent dbc8b7241d
commit ec0fd650ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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);
},
[]
);