Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
length: 0,
pageSize: 10,
threshold: 500
},
enumerable: true
}]);
return List;
})(_React.Component);
exports.List = List;
// asuth-hack: this is where the pure render mixin canonically lives now;
// this whole file should be rebuilt/updated/whatever, but this works for now.
List.prototype.shouldComponentUpdate =
require('react-addons-pure-render-mixin').shouldComponentUpdate;
var UniformList = (function (_List) {
function UniformList() {
_classCallCheck(this, UniformList);
if (_List != null) {
_List.apply(this, arguments);
}
this.state = {
from: 0,
itemHeight: this.props.itemHeight || 0,
itemsPerRow: this.props.itemsPerRow || 1,
size: 1
};
}
shouldComponentUpdate(nextProps: Props, nextState: any): boolean {
return ReactComponentWithPureRenderMixin.shouldComponentUpdate.call(
this,
nextProps,
nextState
);
}
shouldComponentUpdate(nextProps, nextState) {
return !nextProps.loading && PureRenderMixin.shouldComponentUpdate(this, nextProps, nextState);
}
constructor(props, context) {
super(props, context);
this.shouldComponentUpdate = PureRenderMixin.shouldComponentUpdate.bind(this);
this.updateHandle = this.updateHandle.bind(this)
}
constructor(props, context) {
super(props, context);
this.shouldComponentUpdate = PureRenderMixin.shouldComponentUpdate.bind(this);
this.state = {}
}
constructor(props, context) {
super(props, context);
this.shouldComponentUpdate = PureRenderMixin.shouldComponentUpdate.bind(this);
}
render() {