I took an example - https://javascript.daypilot.org/demo/scheduler/infinite.html and just modify the onScroll function:
onScroll(args) {
const { viewport } = args;
this.props.loadItemsRequest(viewport.start, viewport.end);
// I load data and save it to the redux store and I provide "events" prop to the Scheduler
// After events prop change I have unexpected scroll
},
P.S. onScroll is called not only after scroll, onScroll is called after init, props update and scroll.
I can't fetch data into onScroll method, that's is not a good idea and I have to store it to the state and process into a selector (redux staff)
I'm using https://npm.daypilot.org/daypilot-pro-react/trial/2020.2.4481.tar.gz