This commit updates '@tanstack/react-query' from '5.32.0' to '5.35.1' and 'lucide-react' from '^0.376.0' to '^0.378.0' in package.json. Additionally, changes were made in pnpm-lock.yaml including updating the lockfile version from '9.0' to '6.0'.
12 lines
263 B
TypeScript
12 lines
263 B
TypeScript
import { useEffect } from 'react';
|
|
|
|
import { useMonitoring } from './use-monitoring';
|
|
|
|
export function useCaptureException(error: Error) {
|
|
const service = useMonitoring();
|
|
|
|
useEffect(() => {
|
|
void service.captureException(error);
|
|
}, [error, service]);
|
|
}
|