From 5c3cebfd3c63a0a00f972d885eb92331b8175f77 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 7 Oct 2023 22:51:48 -0500 Subject: [PATCH] Layout.Aside: add Suspense boundary for the whole component --- src/components/ui/layout/layout.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/ui/layout/layout.tsx b/src/components/ui/layout/layout.tsx index 459febef2..0ede77e6b 100644 --- a/src/components/ui/layout/layout.tsx +++ b/src/components/ui/layout/layout.tsx @@ -1,5 +1,5 @@ import clsx from 'clsx'; -import React from 'react'; +import React, { Suspense } from 'react'; import StickyBox from 'react-sticky-box'; interface ISidebar { @@ -52,7 +52,9 @@ const Main: React.FC> = ({ children, classN const Aside: React.FC = ({ children }) => ( );