feat(app): add suspense boundary

This commit is contained in:
ItzCrazyKns 2024-05-11 21:19:38 +05:30
parent 954b4bf89a
commit c852bee8ed
No known key found for this signature in database
GPG Key ID: 8162927C7CCE3065
1 changed files with 4 additions and 1 deletions

View File

@ -1,5 +1,6 @@
import ChatWindow from '@/components/ChatWindow'; import ChatWindow from '@/components/ChatWindow';
import { Metadata } from 'next'; import { Metadata } from 'next';
import { Suspense } from 'react';
export const metadata: Metadata = { export const metadata: Metadata = {
title: 'Chat - Perplexica', title: 'Chat - Perplexica',
@ -9,7 +10,9 @@ export const metadata: Metadata = {
const Home = () => { const Home = () => {
return ( return (
<div> <div>
<Suspense>
<ChatWindow /> <ChatWindow />
</Suspense>
</div> </div>
); );
}; };