Access the error reporter in any component.
const reporter = useErrorReporter();try { ... } catch (err) { reporter.captureError(err as Error, { component: 'MyComponent' });} Copy
const reporter = useErrorReporter();try { ... } catch (err) { reporter.captureError(err as Error, { component: 'MyComponent' });}
Access the error reporter in any component.