File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -2,21 +2,23 @@ import AppShell from "@/components/app-shell";
22import DynamicPostHogIdentifier from "@/providers/posthog-identifier.dynamic" ;
33import AuthorizedApolloWrapper from "@/providers/use-apollo.rsc" ;
44import ProtectedRoute from "@/providers/use-protected-route" ;
5- import { unstable_ViewTransition as ViewTransition } from "react" ;
5+ import { Suspense , ViewTransition } from "react" ;
66
77export default function Layout ( { children } : { children : React . ReactNode } ) {
88 return (
9- < ProtectedRoute >
10- < AuthorizedApolloWrapper >
11- < AppShell >
12- < div className = "mx-auto w-full max-w-7xl flex-1 p-3" >
13- < ViewTransition name = "app-content" >
14- < div suppressHydrationWarning > { children } </ div >
15- </ ViewTransition >
16- </ div >
17- </ AppShell >
18- < DynamicPostHogIdentifier />
19- </ AuthorizedApolloWrapper >
20- </ ProtectedRoute >
9+ < Suspense >
10+ < ProtectedRoute >
11+ < AuthorizedApolloWrapper >
12+ < AppShell >
13+ < div className = "mx-auto w-full max-w-7xl flex-1 p-3" >
14+ < ViewTransition name = "app-content" >
15+ < div suppressHydrationWarning > { children } </ div >
16+ </ ViewTransition >
17+ </ div >
18+ </ AppShell >
19+ < DynamicPostHogIdentifier />
20+ </ AuthorizedApolloWrapper >
21+ </ ProtectedRoute >
22+ </ Suspense >
2123 ) ;
2224}
You can’t perform that action at this time.
0 commit comments