:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
import { Suspense } from 'react'
import { LemonDialog } from 'lib/lemon-ui/LemonDialog'
import { Spinner } from 'lib/lemon-ui/Spinner'
import { lazyWithRetry } from 'lib/utils/retryImport'
import type { DebugCHQueriesProps } from './DebugCHQueriesImpl'
const LazyDebugCHQueries = lazyWithRetry(() =>
import('./DebugCHQueriesImpl').then((m) => ({ default: m.DebugCHQueries }))
)
/** Lazy facade so the debug panel's charting dependencies stay out of the eager menu/shortcut chunks. */
export function DebugCHQueries(props: DebugCHQueriesProps): JSX.Element {
return (
<Suspense fallback={<Spinner />}>
<LazyDebugCHQueries {...props} />
</Suspense>
)
}
export function openCHQueriesDebugModal(): void {
LemonDialog.open({
title: 'ClickHouse queries recently executed for this user',
content: <DebugCHQueries />,
primaryButton: null,
width: 1600,
})
}