Bidrectional Infinite Scrolling Implementation

Hi guys have you ever implemented something like this in a chat application? or any application for that matter, where your infinite scrolling is able to to scroll 2 directions and add items to the initial items either at the start or at the end of the items based on the direction of the scrolling of the user, I find this really hard to implement. Currently using react-infinite-scroller. Any help would be greatly appreciated! Thank you!
Prob make your own component

Looking for more? Join the community!