首页 > redux: this.props.dispatch后获取新的props

redux: this.props.dispatch后获取新的props

this.props.dispatch(categoryDisplay([date, date]))
//这里不能马上获取到改动
console.log(this.props.categoryDisplay.timeRange);

如何在dispatch后,马上获取到最新的props呢?

【热门文章】
【热门文章】