How to use the @devexpress/dx-core.shallowEqual function in @devexpress/dx-core

To help you get started, we’ve selected a few @devexpress/dx-core 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 deranjer / goTorrent / goTorrentWebUI / node_modules / @devexpress / dx-react-core / dist / dx-react-core.es.js View on Github external
var isTrackedDependenciesChanged = function isTrackedDependenciesChanged(pluginHost, prevTrackedDependencies) {
  var getGetterValue = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function (getterName) {
    return pluginHost.get(getterName + 'Getter');
  };

  var trackedDependencies = Object.keys(prevTrackedDependencies).reduce(function (acc, getterName) {
    return Object.assign(acc, defineProperty({}, getterName, getGetterValue(getterName)));
  }, {});

  return !shallowEqual(prevTrackedDependencies, trackedDependencies);
};
github deranjer / goTorrent / goTorrentWebUI / node_modules / @devexpress / dx-react-core / dist / dx-react-core.es.js View on Github external
value: function shouldComponentUpdate(nextProps) {
      var _getRenderingData = this.getRenderingData(nextProps),
          params = _getRenderingData.params;

      return !shallowEqual(params, this.params) || this.props.children !== nextProps.children;
    }
  }, {

@devexpress/dx-core

Core library for DevExtreme Reactive Components

SEE LICENSE IN README.md
Latest version published 2 months ago

Package Health Score

86 / 100
Full package analysis