Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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);
};
value: function shouldComponentUpdate(nextProps) {
var _getRenderingData = this.getRenderingData(nextProps),
params = _getRenderingData.params;
return !shallowEqual(params, this.params) || this.props.children !== nextProps.children;
}
}, {