File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,14 @@ import {
1111 ServerParseError
1212} from "@apollo/client" ;
1313import { ApolloProvider } from "@apollo/client/react" ;
14- import React from "react" ;
14+ import React , { Suspense } from "react" ;
1515import "./global.scss"
1616import { setContext } from "@apollo/client/link/context" ;
1717import { ErrorLink } from "@apollo/client/link/error" ;
1818import { useRouter } from "next/navigation" ;
1919import { Toaster } from "sonner" ;
2020import { Error } from "@code0-tech/sagittarius-graphql-types" ;
21- import { Text , toast } from "@code0-tech/pictor" ;
21+ import { toast } from "@code0-tech/pictor" ;
2222import { Inter } from 'next/font/google'
2323
2424/**
@@ -201,10 +201,12 @@ export default function RootLayout({children}: Readonly<{ children: React.ReactN
201201 return React . useMemo ( ( ) => {
202202 return < html >
203203 < body className = { inter . className } >
204- < ApolloProvider client = { client } >
205- < Toaster position = { "top-right" } />
206- { children }
207- </ ApolloProvider >
204+ < Suspense >
205+ < ApolloProvider client = { client } >
206+ < Toaster position = { "top-right" } />
207+ { children }
208+ </ ApolloProvider >
209+ </ Suspense >
208210 </ body >
209211 </ html >
210212 } , [ client , children ] )
You can’t perform that action at this time.
0 commit comments