add loading and optimize query using cache and pwa
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Skeleton generik untuk route group `(public)` — fallback streaming bagi
|
||||
* halaman yang tidak punya `loading.tsx` sendiri (beranda, profil, dll).
|
||||
*/
|
||||
export default function Loading() {
|
||||
return (
|
||||
<div className="mx-auto max-w-5xl px-4 py-10">
|
||||
<div className="h-8 w-1/2 animate-pulse rounded-xl bg-neutral-200" />
|
||||
<div className="mt-4 space-y-3">
|
||||
<div className="h-4 w-full animate-pulse rounded bg-neutral-100" />
|
||||
<div className="h-4 w-5/6 animate-pulse rounded bg-neutral-100" />
|
||||
<div className="h-4 w-2/3 animate-pulse rounded bg-neutral-100" />
|
||||
</div>
|
||||
<div className="mt-8 h-64 animate-pulse rounded-2xl bg-neutral-100" />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user