Skip to content

Commit

Permalink
chore: Fix warning about useLayoutEffect on SSR
Browse files Browse the repository at this point in the history
  • Loading branch information
franky47 committed Sep 15, 2023
1 parent 1766b32 commit 1e6815b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/e2e/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Suspense } from 'react'
import { QuerySpy } from '../../../components/query-spy'

export default function E2EPageLayout({
Expand All @@ -7,7 +8,9 @@ export default function E2EPageLayout({
}) {
return (
<>
<QuerySpy />
<Suspense>
<QuerySpy />
</Suspense>
{children}
</>
)
Expand Down

0 comments on commit 1e6815b

Please sign in to comment.