Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Force at least one item to always be initially rendered (#5029)

authored by

Hailey and committed by
GitHub
d5a76183 497aacf1

+6 -1
+6 -1
src/lib/hooks/useInitialNumToRender.ts
··· 15 15 16 16 const finalHeight = 17 17 screenHeight - screenHeightOffset - topInset - bottomBarHeight 18 - return Math.floor(finalHeight / minItemHeight) + 1 18 + 19 + const minItems = Math.floor(finalHeight / minItemHeight) 20 + if (minItems < 1) { 21 + return 1 22 + } 23 + return minItems 19 24 }