Closed didiself closed 6 years ago
Hi, I use redux in the item component , but it's cannot rerender the view after redux data changed.
After several repeated attempts, it's realize in componentWillReceiveProps function like this:
componentWillReceiveProps
componentWillReceiveProps(props) { const { dispatch } = this.props dispatch(someUpdateDataFunction()).then(() => { this.forceUpdate() }) } }
It is a bug ??? or any suggestion ??
Hi, I use redux in the item component , but it's cannot rerender the view after redux data changed.
After several repeated attempts, it's realize in
componentWillReceiveProps
function like this:It is a bug ??? or any suggestion ??