反应-componentWillReceiveProps不调用

时间:2018-09-05 15:40:30

标签: reactjs react-native

我注意到prop的子对象更改时componentWillReceiveProps不会调用。例如,当child更改为:this.props.myprop.parent.child时,componentWillReceiveProps不会触发。我该怎么办?谢谢。

0 个答案:

没有答案