Content pfp
Content
@
0 reply
0 recast
0 reaction

Darryl Yeo 🛠️ pfp
Darryl Yeo 🛠️
@darrylyeo
Estimating the physically rendered height of every cast in the @warpcast feed sounds… painful 🥲 http://github.com/Shopify/flash-list
4 replies
0 recast
8 reactions

Nick Cherry pfp
Nick Cherry
@nickcherry
That is correct 😅 . I'm not sure what the current state is, but in a simpler time (when there were fewer variables that went into the height of a cast), I think we would attempt to approximate average height based on the data for each cast, then pass the estimated height to FlashList for its internal optimizations. After the cast rendered, we would cache the true height to reference if any of the casts appeared on a different list later in the session. The easier approach is just to ballpark a reasonable average. FlashList won't be perfectly tuned, but will probably be close enough.
0 reply
1 recast
2 reactions