In my other classes, componentWillReceiveProps was working nicely, but for some reason, it isn\'t firing here.
ItemView.jsx
class ItemView extends React.
If anyone else is having a problem with this...
componentWillReceiveProps
will not be called if you are receiving the exact same props as before. What you can do to get around it is add a dummy prop that iterates every time you want to send the same prop to the component in case that component internally resets itself somehow
click() {
this.setState({counter: ++this.state.counter, unchangingProp:true})
}
This way componentWillRecieveProps
will be triggered every time.