我正在React.js中通过动作调用更新我的redux状态,而现在componentWillReciveNewProps()
已被贬值了,我想使用
static getDerivedStateFromProps(nextProps, prevState)
更新我的组件,但是正如我所看到的,它被称为早期,我是说首先
->动作被称为
-> static getDerivedStateFromProps(nextProps, prevState)
被调用
->和action_success并更新redux
但是我的组件没有更新。 您知道如何解决吗? 预先感谢