diff --git a/app/(site)/page.tsx b/app/(site)/page.tsx index 49505f8..fcec3e7 100644 --- a/app/(site)/page.tsx +++ b/app/(site)/page.tsx @@ -5,12 +5,12 @@ import getQueryClient from '@/lib/queryClient'; import Container from './container'; -const Random = () => { +const Random = async () => { const queryClient = getQueryClient(); const page = generatePage(); - queryClient.prefetchInfiniteQuery(randomQuery({ page })); + await queryClient.prefetchInfiniteQuery(randomQuery({ page, suspense: false })); return ( diff --git a/components/Header/components/Navigation/index.tsx b/components/Header/components/Navigation/index.tsx index 276c600..46bf2c3 100644 --- a/components/Header/components/Navigation/index.tsx +++ b/components/Header/components/Navigation/index.tsx @@ -25,7 +25,7 @@ export const MobileNavigation = () => { {paths.map(({ path, title }) => ( - +