react-infinite-scroller icon indicating copy to clipboard operation
react-infinite-scroller copied to clipboard

The loader prop component gets loaded when the component mounts

Open WalidKurchied opened this issue 5 years ago • 2 comments

So i have an issue obviously the correct behaviour should be when a user scrolls then display the loader while we fetch some data however i have a weird behaviour were when i load the component the loader component that passed to the loader prop gets loaded by default before scrolling or doing anything..I tried to set initialLoad to false but that doesn't seem to work..Anyone dealt with similar issue ?

Thanks

WalidKurchied avatar Apr 05 '19 08:04 WalidKurchied

Looking at the code for the scroller I think the problem could be from the initialLoad prop!

WalidKurchied avatar Apr 05 '19 09:04 WalidKurchied

This sounds very similar to the issue people have mentioned here: https://github.com/CassetteRocks/react-infinite-scroller/issues/163

kwahsog avatar Apr 16 '19 15:04 kwahsog