react-material-calendar icon indicating copy to clipboard operation
react-material-calendar copied to clipboard

shouldComponentUpdate is not taking under consideration updating children

Open JedrzejMajko opened this issue 7 years ago • 0 comments

If you change number of items after first render, they'll not be rendered at all. It's because shouldComponentUpdate do not take under consideration if number of children has changed. If you have this problem add || nextProps.children.length!=this.props.children.length to shouldComponentUpdate in src/Calendar.js to make it work.

JedrzejMajko avatar May 18 '17 14:05 JedrzejMajko