From 7142d2ffb030228fc92c6323f5822d22b34b56d2 Mon Sep 17 00:00:00 2001 From: Innei Date: Sat, 10 Jun 2023 19:55:15 +0800 Subject: [PATCH] fix: suspense Signed-off-by: Innei --- src/components/layouts/SiteLayout/index.tsx | 42 ++++++++++++++------- 1 file changed, 28 insertions(+), 14 deletions(-) diff --git a/src/components/layouts/SiteLayout/index.tsx b/src/components/layouts/SiteLayout/index.tsx index dc2a4b35f..723aa36cf 100644 --- a/src/components/layouts/SiteLayout/index.tsx +++ b/src/components/layouts/SiteLayout/index.tsx @@ -1,6 +1,7 @@ import type { FC } from 'react' import React, { memo, + Suspense, useCallback, useEffect, useId, @@ -133,7 +134,9 @@ export const SiteLayout: FC = memo(({ children }) => {
-
+ +
+
{children}
@@ -152,19 +155,30 @@ export const SiteLayout: FC = memo(({ children }) => { } /> -