In my other classes, componentWillReceiveProps was working nicely, but for some reason, it isn\'t firing here.
ItemView.jsx
class ItemView extends React.
i also had the same problem. if someone typed in a direct url the componentwillreceiveprops did not fire. i had to refactor my code as well to get it all working.
Changes i made was in my initial index.tsx having something like (i.e. have the router as the outer element):
render(
{routes}
, document.getElementById('root'));
my default route was to my app.tsx page with a structure as follows: render() {
return (
{this.props.children}
);
}