Skip to content

Commit

Permalink
feat: 🔥 init data dog
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeep-deriv committed Nov 22, 2024
1 parent 8cdd80f commit e1137df
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/app/app-content.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { useApiBase } from '@/hooks/useApiBase';
import { useStore } from '@/hooks/useStore';
import useThemeSwitcher from '@/hooks/useThemeSwitcher';
import useTrackjs from '@/hooks/useTrackjs';
import initDatadog from '@/utils/datadog';
import { setSmartChartsPublicPath } from '@deriv/deriv-charts';
import { ThemeProvider } from '@deriv-com/quill-ui';
import { localize } from '@deriv-com/translations';
Expand Down Expand Up @@ -132,6 +133,14 @@ const AppContent = observer(() => {
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [client.is_landing_company_loaded, is_api_initialized]);

// TODO: fix
// const isMounted = useIsMounted();
// const { data: remote_config_data } = useRemoteConfig(isMounted());
// const { tracking_datadog } = data;
useEffect(() => {
initDatadog(true); // (tracking_datadog);
}, []); // [tracking_datadog])

if (common?.error) return null;

return is_loading ? (
Expand Down

0 comments on commit e1137df

Please sign in to comment.