use-infinite-scroll
use-infinite-scroll copied to clipboard
Reverse Mode
Hi,
thanks for the package - its very neat! I was wondering if it is possible to enable a reverse mode, e.g. for a chat application where the user scrolls up to load previous messages.
Any ideas?
Best Philipp
For reverse mode, just place the loaderRef at the top of the list as opposed to the bottom. So that when the user scrolls to the top, it triggers.