馬老師消息中間件-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;
標簽: