Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Grid.prototype.componentDidUpdate = function (_a) {
var prevChildren = _a.children, gridPrevProps = __rest(_a, ["children"]);
var _b = this.props, children = _b.children, gridProps = __rest(_b, ["children"]);
var gridFromChildren = this.getGridFromChildren(children);
var prevGridFromChildren = this.getGridFromChildren(prevChildren);
if (!shallowequal_1.default(gridPrevProps, gridProps) || !isEqual_1.default(gridFromChildren, prevGridFromChildren)) {
this.computeGrid(gridFromChildren);
}
};
Grid.prototype.getGridFromChildren = function (children) {