smooth-scrollbar icon indicating copy to clipboard operation
smooth-scrollbar copied to clipboard

Infinite Scrolling example with the latest version

Open davidpelayo opened this issue 5 years ago • 2 comments
trafficstars

Where can I find an example working with some infinite scrolling? I now from the react-smooth-scrollbar of an example working with the version 7, but I can't find it with the latest version.

All what I find is the migration guide that says that Reason: can be implemented with ScrollbarPlugin.

However, the infinite scrolling is still a common use case for data pagination and I can't find any example on how to use it with this tool.

Thanks in advance.

EDIT: The infinite scrolling implementation file from the 7.x version.

davidpelayo avatar Apr 22 '20 06:04 davidpelayo

You can use the exactly same code from 7.x version if you don't want to use ScrollbarPlugin :).

idiotWu avatar Apr 22 '20 10:04 idiotWu

That's right. But I was curious on why and how the migration guide says it could be done using the ScrollbarPlugin while having no example of it anywhere.

Wouldn't it be then needed either upgrading the examples or simply clarifying that with the latest version, the consumers could still implement the code from the 7.x version and that would work correctly?

davidpelayo avatar Apr 22 '20 11:04 davidpelayo