Improvements
- Stable Id support: Adds
getStableId(index: number): string
as second param inDataProvider
constructor. Significantly improves re-rendering on data set changes. Enables add/remove animations. - New prop
optimizeForInsertDeleteAnimations
forcefully unmounts removed items to kick in layout animations. Without it RLV prefers reusing the cell later. This prop requires stable ids. - Externalised Layout Provider: You can write your own and pass it in the same prop to RLV e.g, if you want masonry with recycling you can write it and open source yourself :)
- SSR Fixes to allow server builds
onRecreate
prop added which triggers a callback in case of context preservation passing necessary info likelastOffset
for more optimizations in app logic.- Improved warning in case of missing RLV bounds
- Warning if mounted without any data