Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
{
isOverflowScroll,
horizontal,
container: this._renderer.container,
resize: () => setTimeout(() => { this.setState({ layout: true }); }),
check: param => this._onCheck(param),
});
this._infinite = new Infinite(this._items, {
horizontal,
threshold,
useRecycle: true,
append: param => this._requestAppend(param),
prepend: param => this._requestPrepend(param),
recycle: param => this._recycle(param),
});
this._manager = new LayoutManager(this._items, this._renderer, {
isEqualSize,
isConstantSize,
});
this._manager.setLayout(this._layout);
this._updateLayout();
this._setSize(this._renderer.getViewportSize());
this._updateGroups();
this._watcher.setScrollPos();
const items = this._getVisibleItems();
const status = this.props.status;
const length = items.length;
if (!length) {
this.state.isFirstRender = false;