diff --git a/src/app/components/PaginationPlaceholders.tsx b/src/app/components/PaginationPlaceholders.tsx index c8221cfeb..57eb0f5dc 100644 --- a/src/app/components/PaginationPlaceholders.tsx +++ b/src/app/components/PaginationPlaceholders.tsx @@ -41,13 +41,14 @@ export function PaginationLoader({ if (isEmpty) { const count = isCompact ? 5 : 3; const anchorIndex = direction === 'backward' ? count - 1 : 0; + const skeletonKeys = Array.from({ length: count }, (_, idx) => `skeleton-${direction}-${idx}`); return ( <> - {[...Array(count)].map((_, i) => { + {skeletonKeys.map((skeletonKey, i) => { const attachRef = i === anchorIndex ? observerRef : undefined; return ( - + {isCompact ? : } );