-
-
Notifications
You must be signed in to change notification settings - Fork 2
Datasource
Denis Hilt edited this page Feb 16, 2022
·
8 revisions
Datasource is the main part of the integration of the end App and the Virtual scroll engine. Can be seen as the data-fetching mechanism that the end App developer should provide when using vscroll module (directly or via consumer). Through the dependency injection the datasource gets into the heart of the Virtual scroll engine, and the Scroller requests the datasource each time it needs the data from the outside. For example, when the user scrolls, it triggers the appropriate processes inside the Virtual scroll engine, which can cause the Scroller to decide that it needs a new pack of items, and then it requests that data from the end App using the Datasource.get method.