mirror of
https://github.com/vercel/commerce.git
synced 2025-07-22 20:26:49 +00:00
Updated TypeScript to resolve async RSC error
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
import Footer from '@/components/layout/footer/footer';
|
||||
import ProductView from 'components/product/product-view';
|
||||
import { productQuery } 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';
|
||||
|
||||
interface ProductPageParams {
|
||||
params: {
|
||||
@@ -85,10 +83,7 @@ export default async function ProductPage({ params }: ProductPageParams) {
|
||||
__html: JSON.stringify(productJsonLd)
|
||||
}}
|
||||
/>
|
||||
<ProductView product={product} relatedProducts={[]} />
|
||||
<Suspense>
|
||||
<Footer locale={params.locale} />
|
||||
</Suspense>
|
||||
<ProductView product={product} relatedProducts={[]} />;
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user