From 7e9e19d692f0a65e9389d9c11243deb92639c305 Mon Sep 17 00:00:00 2001 From: Lee Robinson Date: Mon, 12 May 2025 21:03:08 -0500 Subject: [PATCH] Update to latest canary + dynamicIO --- app/[page]/page.tsx | 19 +- app/product/[handle]/page.tsx | 10 +- app/search/[collection]/page.tsx | 15 +- components/carousel.tsx | 11 +- components/grid/three-items.tsx | 12 +- components/layout/footer.tsx | 15 +- next.config.ts | 1 + package.json | 24 +- pnpm-lock.yaml | 926 ++++++++++++++++++------------- 9 files changed, 606 insertions(+), 427 deletions(-) diff --git a/app/[page]/page.tsx b/app/[page]/page.tsx index aa0c15603..f9443e691 100644 --- a/app/[page]/page.tsx +++ b/app/[page]/page.tsx @@ -23,7 +23,11 @@ export async function generateMetadata(props: { }; } -export default async function Page(props: { params: Promise<{ page: string }> }) { +export default async function Page(props: { + params: Promise<{ page: string }>; +}) { + 'use cache'; + const params = await props.params; const page = await getPage(params.page); @@ -34,11 +38,14 @@ export default async function Page(props: { params: Promise<{ page: string }> })

{page.title}

- {`This document was last updated on ${new Intl.DateTimeFormat(undefined, { - year: 'numeric', - month: 'long', - day: 'numeric' - }).format(new Date(page.updatedAt))}.`} + {`This document was last updated on ${new Intl.DateTimeFormat( + undefined, + { + year: 'numeric', + month: 'long', + day: 'numeric' + } + ).format(new Date(page.updatedAt))}.`}

); diff --git a/app/product/[handle]/page.tsx b/app/product/[handle]/page.tsx index 33de3c0ba..038173879 100644 --- a/app/product/[handle]/page.tsx +++ b/app/product/[handle]/page.tsx @@ -49,7 +49,11 @@ export async function generateMetadata(props: { }; } -export default async function ProductPage(props: { params: Promise<{ handle: string }> }) { +export default async function ProductPage(props: { + params: Promise<{ handle: string }>; +}) { + 'use cache'; + const params = await props.params; const product = await getProduct(params.handle); @@ -103,7 +107,9 @@ export default async function ProductPage(props: { params: Promise<{ handle: str - + + +