Skip to content

Commit

Permalink
change length of tokens to load (#2454)
Browse files Browse the repository at this point in the history
  • Loading branch information
pvicensSpacedev authored May 2, 2024
1 parent 894233b commit 7df6903
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,11 @@ function UserGalleryCollections({ galleryRef, queryRef, mobileLayout }: Props) {
);
}

// TODO: Change length to properly reflect virtualizedList onLoad. Some profile's onLoad function not triggering
const filteredTokenIds = tokenIds ? tokenIds.slice(0, 1) : [];

return (
<MultiShimmerProvider tokenIdsToLoad={tokenIds ? tokenIds?.slice(0, 12) : []}>
<MultiShimmerProvider tokenIdsToLoad={filteredTokenIds}>
<StyledUserGalleryCollections>
<WindowScroller>
{({ height, registerChild, scrollTop, onChildScroll }) => (
Expand Down

0 comments on commit 7df6903

Please sign in to comment.