fix: provider 중첩시 suspense 사용 시 문제 해결

This commit is contained in:
yoosangwook 2025-01-17 16:44:14 +09:00
parent a81a330b3d
commit 0e736ee479

View File

@ -66,7 +66,6 @@ export default async function RootLayout({ children }) {
<GlobalDataProvider> <GlobalDataProvider>
<html lang="en"> <html lang="en">
<body> <body>
<Suspense fallback={<GlobalSpinner />}>
{headerPathname === '/login' || headerPathname === '/join' ? ( {headerPathname === '/login' || headerPathname === '/join' ? (
<QcastProvider>{children}</QcastProvider> <QcastProvider>{children}</QcastProvider>
) : ( ) : (
@ -83,7 +82,6 @@ export default async function RootLayout({ children }) {
)} )}
<QModal /> <QModal />
<PopupManager /> <PopupManager />
</Suspense>
</body> </body>
</html> </html>
</GlobalDataProvider> </GlobalDataProvider>