fix loading
This commit is contained in:
@@ -2,7 +2,8 @@ import type { Metadata } from "next";
|
||||
import { NextIntlClientProvider, hasLocale } from 'next-intl';
|
||||
import { notFound } from 'next/navigation';
|
||||
import { routing } from '@/i18n/routing';
|
||||
import ClientProviders from '@/app/providers/ClientProviders';
|
||||
import { ToastProvider } from '@/app/providers/ToastProvider';
|
||||
import Providers from '@/app/providers/getQueryServer';
|
||||
import { Suspense } from 'react';
|
||||
|
||||
import "../styles/globals.css";
|
||||
@@ -32,13 +33,12 @@ export default async function RootLayout({
|
||||
return (
|
||||
<html>
|
||||
<body>
|
||||
<Suspense fallback={<div>Loading...</div>}>
|
||||
<NextIntlClientProvider locale={locale}>
|
||||
<ClientProviders>
|
||||
{children}
|
||||
</ClientProviders>
|
||||
</NextIntlClientProvider>
|
||||
</Suspense>
|
||||
<NextIntlClientProvider locale={locale}>
|
||||
<Providers>
|
||||
{children}
|
||||
<ToastProvider />
|
||||
</Providers>
|
||||
</NextIntlClientProvider>
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
'use client'
|
||||
|
||||
import { PdfProvider } from '@/app/contexts/PdfContext';
|
||||
import { WatchDocProviders } from '@/app/providers/ClientProviders';
|
||||
import { WatchDocProviders } from '@/app/providers/WatchDocProviders';
|
||||
|
||||
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user