Files
twenty_crm/packages/twenty-front/src/modules/error-handler/components/ExceptionHandlerProvider.tsx
Deepak Kumar 46ab88cb9c GH-2829 Add Sentry on frontend (#3111)
* GH-2829 pass sentry dsn key from backend in ClientConfig

* GH-2829 add Sentry library on frontend

* GH-2829 fetch dsnKey in GQL and add a state

* GH-2829 initialize Sentry on frontend

* GH-2829 fix linting issues

* Update yarn.lock

* GH-2829 update graphql schema for clientConfig

* GH-2829 remove Sentry comments

* GH-2829 rename sentry state

* GH-2829 rename dsnKey to dsn

* GH-2829 refactor to use componentEffect for sentry initialization

* GH-2829 fix linting issues

* GH-2829 update Graphql types

---------

Co-authored-by: Charles Bochet <charles@twenty.com>
2023-12-21 23:50:24 +01:00

13 lines
258 B
TypeScript

import { SentryInitEffect } from '@/error-handler/components/SentryInitiEffect';
export const ExceptionHandlerProvider: React.FC<React.PropsWithChildren> = ({
children,
}) => {
return (
<>
<SentryInitEffect />
{children}
</>
);
};