File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 11import AppShell from "@/components/app-shell" ;
2- import PostHogIdentifier from "@/providers/posthog-identifier" ;
2+ import DynamicPostHogIdentifier from "@/providers/posthog-identifier.dynamic " ;
33import AuthorizedApolloWrapper from "@/providers/use-apollo.rsc" ;
44import ProtectedRoute from "@/providers/use-protected-route" ;
55import { unstable_ViewTransition as ViewTransition } from "react" ;
@@ -15,7 +15,7 @@ export default function Layout({ children }: { children: React.ReactNode }) {
1515 </ ViewTransition >
1616 </ div >
1717 </ AppShell >
18- < PostHogIdentifier />
18+ < DynamicPostHogIdentifier />
1919 </ AuthorizedApolloWrapper >
2020 </ ProtectedRoute >
2121 ) ;
Original file line number Diff line number Diff line change 1+ "use client" ;
2+
3+ import dynamic from "next/dynamic" ;
4+
5+ const DynamicPostHogIdentifier = dynamic ( ( ) => import ( "./posthog-identifier" ) , {
6+ ssr : false ,
7+ } ) ;
8+
9+ export default DynamicPostHogIdentifier ;
You can’t perform that action at this time.
0 commit comments