I create a car list ,following the example this library provided, the onInfiniteLoad is not triggered at all when scrolled to the bottom. by the way I try to debug the source code , I never see javascript syntax like this
getDisplayIndexStart(windowTop: number): number {
return Math.floor(windowTop / this.heightData);
}
define function getDisplayIndexStart arguments windowTop as number and return number , what syntax are you using?
the onInfiniteLoad function is used to load next page when user scroll, its is called at function componentDidUpdate, it implies the next page is just loaded , the state has changed, since onInfiniteLoad is not triggered , where does next page data come from ? also hasLoadedMoreChildren has the same implication. why the onInfiniteLoad function is triggered when data is already loaded?
I create a car list ,following the example this library provided, the onInfiniteLoad is not triggered at all when scrolled to the bottom. by the way I try to debug the source code , I never see javascript syntax like this
define function getDisplayIndexStart arguments windowTop as number and return number , what syntax are you using?
the onInfiniteLoad function is used to load next page when user scroll, its is called at function
componentDidUpdate
, it implies the next page is just loaded , the state has changed, since onInfiniteLoad is not triggered , where does next page data come from ? alsohasLoadedMoreChildren
has the same implication. why theonInfiniteLoad
function is triggered when data is already loaded?