TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Stable Bidirectional Infinite Scroll

3 pointsby ckaicalmost 4 years ago
https:&#x2F;&#x2F;cathykc.github.io&#x2F;bx-stable-infinite-scroll&#x2F;<p>We struggled to find an existing package that gave us a stable bidirectional infinite scroll out of the box. Users of dispatch.do are often dropped in the middle of a feed and we needed to load historical as well as more recent data without shifting the view.<p>Open-sourcing a component we wrote to solve this problem. Works with heterogenous rows and pairs well with virtualization libraries like react-window. Pull requests, issue submissions very welcome :)

2 comments

ckaicalmost 4 years ago
Links:<p><a href="https:&#x2F;&#x2F;cathykc.github.io&#x2F;bx-stable-infinite-scroll&#x2F;" rel="nofollow">https:&#x2F;&#x2F;cathykc.github.io&#x2F;bx-stable-infinite-scroll&#x2F;</a> <a href="https:&#x2F;&#x2F;www.dispatch.do&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.dispatch.do&#x2F;</a>
stedmanalmost 4 years ago
This is such an annoying problem for anyone building a chat app. Very elegant solution. Thank you