We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c30168a commit 5f4be2dCopy full SHA for 5f4be2d
1 file changed
TechStacks.Client/src/app/page.tsx
@@ -1,6 +1,6 @@
1
'use client';
2
3
-import { useEffect, useState, useCallback } from 'react';
+import { useEffect, useState, useCallback, Suspense } from 'react';
4
import { useRouter, useSearchParams } from 'next/navigation';
5
import { PrimaryButton, SecondaryButton } from '@servicestack/react';
6
import { PostsList } from '@/components/posts/PostsList';
@@ -351,6 +351,8 @@ function HomePageContent() {
351
352
export default function HomePage() {
353
return (
354
- <HomePageContent />
+ <Suspense fallback={<div className="container mx-auto px-4 py-8"><div className="flex justify-center items-center py-12"><div className="text-gray-600">Loading...</div></div></div>}>
355
+ <HomePageContent />
356
+ </Suspense>
357
);
358
}
0 commit comments