From 999e0f487097e3d92e4a326e12c0b7706cd43f70 Mon Sep 17 00:00:00 2001 From: al Date: Mon, 5 Aug 2024 13:37:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0Suspense?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/layout.js | 4 ++-- components/Player/index.js | 16 ---------------- components/PostItem/index.js | 2 ++ package-lock.json | 2 +- package.json | 2 +- 5 files changed, 6 insertions(+), 20 deletions(-) delete mode 100644 components/Player/index.js diff --git a/app/layout.js b/app/layout.js index 82a1406..1188b57 100644 --- a/app/layout.js +++ b/app/layout.js @@ -1,6 +1,6 @@ "use client"; import { Inter } from "next/font/google"; -import React, { useEffect } from "react"; +import React,{Suspense} from "react"; import "./globals.css"; import BottomNav from "../components/BottomNav"; import { Provider } from "react-redux"; @@ -97,7 +97,7 @@ export default function RootLayout({ children }) {
- {withAuth({children})} + {withAuth({children})} {/* {children} */}