Morgan Brown
Morgan Brown
After playing with the sample you provided the issue is that the `setTimeout` you are initiating in the `useMemo` executes before the component has a chance to render. If you...
[Here](https://codesandbox.io/s/thirsty-joliot-ownnw?file=/src/App.js) is what im doing as a workaround. All i do is check every render if the `scrollHeight` is equal to the `offsetHeight` of the `scrollableTarget` provided to the `InfiniteScroll`....
[workaround](https://github.com/ankeetmaini/react-infinite-scroll-component/issues/226#issuecomment-831389846)