shouldComponentUpdate(nextProps) {
this.debug('shouldComponentUpdate');
return true;
}
在React 生命周期过程中,发现不能重新shouldComponentUpdate函数(如上),否则程序不会走到render这个阶段,只有注释掉这句才可以,求解?
shouldComponentUpdate(nextProps) {
this.debug('shouldComponentUpdate');
return true;
}
在React 生命周期过程中,发现不能重新shouldComponentUpdate函数(如上),否则程序不会走到render这个阶段,只有注释掉这句才可以,求解?