From 887d4377956b9b6e4f4582325ef4e053515077fa Mon Sep 17 00:00:00 2001 From: Lee Robinson Date: Wed, 17 Apr 2024 21:54:09 -0500 Subject: [PATCH] Prepare for using PPR (#1236) --- .github/workflows/test.yml | 2 +- .vscode/settings.json | 6 +- app/[page]/layout.tsx | 9 +- app/[page]/page.tsx | 2 - app/api/revalidate/route.ts | 2 - app/layout.tsx | 8 +- app/page.tsx | 11 +- app/product/[handle]/page.tsx | 12 +- app/search/[collection]/page.tsx | 2 - app/search/layout.tsx | 5 +- app/search/page.tsx | 2 - app/sitemap.ts | 2 + components/layout/search/filter/index.tsx | 4 +- lib/shopify/index.ts | 4 +- package.json | 24 +- pnpm-lock.yaml | 383 ++++++++++++---------- 16 files changed, 241 insertions(+), 237 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f2fee2f8d3..d25c9e4670 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: uses: pnpm/action-setup@v2 with: run_install: false - version: 7 + version: 8 - name: Cache node_modules id: node-modules-cache uses: actions/cache@v3 diff --git a/.vscode/settings.json b/.vscode/settings.json index 3fbb4ab257..8345c107c1 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -2,8 +2,8 @@ "typescript.tsdk": "node_modules/typescript/lib", "typescript.enablePromptUseWorkspaceTsdk": true, "editor.codeActionsOnSave": { - "source.fixAll": true, - "source.organizeImports": true, - "source.sortMembers": true + "source.fixAll": "explicit", + "source.organizeImports": "explicit", + "source.sortMembers": "explicit" } } diff --git a/app/[page]/layout.tsx b/app/[page]/layout.tsx index 453253dca7..50614b5b16 100644 --- a/app/[page]/layout.tsx +++ b/app/[page]/layout.tsx @@ -1,15 +1,12 @@ import Footer from 'components/layout/footer'; -import { Suspense } from 'react'; export default function Layout({ children }: { children: React.ReactNode }) { return ( - + <>
-
- {children} -
+
{children}