dcurletti / redux-infinite-scroll

React infinite scroll component designed for a Redux data-flow.
MIT License
178 stars 47 forks source link

void 0 returns undefined #35

Open bodymovin opened 7 years ago

bodymovin commented 7 years ago

when you declare var totalSize = void 0; on your method "_totalItemsSize", you're totalSize equals undefined instead of 0. so this method always returns NaN. then this._totalItemsSize() <= 0 is never true