马老师消息中间件-ActiveMQ
if(typeof instance.shouldComponentUpdate === 'function') {
const shouldUpdate = instance.shouldComponentUpdate(newProps, newState, newxtContext);
return shouldUpdate;
}
if(ctor.prototype && ctor.prototype.isPureReactComponent) {
return (!shallowEqual(oldProps, newProps) || !shallowEqual(oldState, newState)); // ??? shallowEqual()
}
return true;