From 06e34fa1bc8d355020c4b550df52994474db4045 Mon Sep 17 00:00:00 2001 From: Sol Irvine Date: Sun, 12 Nov 2023 16:03:59 +0900 Subject: [PATCH] add suspense boundaries --- components/layout/footer.tsx | 5 ++++- components/layout/navbar/index.tsx | 16 ++++++++++++---- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/components/layout/footer.tsx b/components/layout/footer.tsx index a86f4f81f..be0609218 100644 --- a/components/layout/footer.tsx +++ b/components/layout/footer.tsx @@ -5,6 +5,7 @@ import InstagramIcon from 'components/icons/instagram'; import KanjiLogo from 'components/icons/kanji'; import { Cart, Product } from 'lib/shopify/types'; import Link from 'next/link'; +import { Suspense } from 'react'; import FooterMenu from './footer-menu'; import NewsletterFooter from './newsletter-footer'; @@ -95,7 +96,9 @@ export default async function Footer({
- + + +
@@ -90,8 +94,12 @@ export default function Navbar({
- - + + + + + +