From 83a88f33a72576193632f5500992413af7940535 Mon Sep 17 00:00:00 2001 From: Linus Flood Date: Fri, 25 Oct 2024 13:10:08 +0200 Subject: [PATCH] Suspense on Sidebar --- app/[lang]/(live)/(protected)/my-pages/layout.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/[lang]/(live)/(protected)/my-pages/layout.tsx b/app/[lang]/(live)/(protected)/my-pages/layout.tsx index f5b84dbd7..4f6054b45 100644 --- a/app/[lang]/(live)/(protected)/my-pages/layout.tsx +++ b/app/[lang]/(live)/(protected)/my-pages/layout.tsx @@ -1,3 +1,6 @@ +import { Suspense } from "react" + +import LoadingSpinner from "@/components/LoadingSpinner" import Sidebar from "@/components/MyPages/Sidebar" import styles from "./layout.module.css" @@ -13,7 +16,9 @@ export default async function MyPagesLayout({
{breadcrumbs}
- + }> + + {children}