From a34b4b628cc1565017aacf3d6e893b29e4a0b514 Mon Sep 17 00:00:00 2001 From: Henrik Larsson Date: Wed, 9 Aug 2023 14:40:45 +0200 Subject: [PATCH] Updated TypeScript to resolve async RSC error --- app/[locale]/[...slug]/page.tsx | 11 +---------- app/[locale]/category/[slug]/page.tsx | 5 ----- app/[locale]/layout.tsx | 2 ++ app/[locale]/page.tsx | 5 ----- app/[locale]/product/[slug]/page.tsx | 7 +------ 5 files changed, 4 insertions(+), 26 deletions(-) diff --git a/app/[locale]/[...slug]/page.tsx b/app/[locale]/[...slug]/page.tsx index 69ea34b6d..6a621b175 100644 --- a/app/[locale]/[...slug]/page.tsx +++ b/app/[locale]/[...slug]/page.tsx @@ -1,10 +1,8 @@ -import Footer from '@/components/layout/footer/footer'; import DynamicContentManager from 'components/layout/dynamic-content-manager'; import { pageQuery } from 'lib/sanity/queries'; import { clientFetch } from 'lib/sanity/sanity.client'; import type { Metadata } from 'next'; import { notFound } from 'next/navigation'; -import { Suspense } from 'react'; export const runtime = 'edge'; @@ -75,12 +73,5 @@ export default async function Page({ params }: PageParams) { if (!page) return notFound(); - return ( - <> - - -