摘要: 因为dispatch为异步方法 。解决这个问题方法很多 出去添加定时器这种不是很优雅的方法 我们可以用 componentWillReceiveProps(nextProps) 这个生命周期 在这个生命周期中判断newtProps 和this.props 是否全等 如果不相同 就去用nextProp 阅读全文
posted @ 2020-01-14 17:02 JSJH 阅读(1058) 评论(0) 推荐(0)