How to use the shallowequal.default function in shallowequal

To help you get started, we’ve selected a few shallowequal examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github jan-rycko / react-grid-template / dist / components / Grid.js View on Github external
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) {

shallowequal

Like lodash isEqualWith but for shallow equal.

MIT
Latest version published 6 years ago

Package Health Score

67 / 100
Full package analysis

Popular shallowequal functions