Update react-query and lucide-react dependencies and improve lockfile version

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'.
This commit is contained in:
giancarlo
2024-05-07 14:22:47 +07:00
parent 9a2fa3be13
commit 05255cbebe
17 changed files with 7087 additions and 8698 deletions

View File

@@ -1,7 +1,11 @@
import { useEffect } from 'react';
import { useMonitoring } from './use-monitoring';
export function useCaptureException(error: Error) {
const service = useMonitoring();
return service.captureException(error);
useEffect(() => {
void service.captureException(error);
}, [error, service]);
}