Commit 6298e660 authored by Florent Chehab's avatar Florent Chehab

Bug corrected in Mycomponent should update

parent 775e0e56
......@@ -120,7 +120,7 @@ class MyComponent extends Component {
myComponentDidMount() { };
shouldComponentUpdate(nextProps, nextState) {
if (typeof this.nextProps.visible != 'undefined' && !this.nextProps.visible) {
if (this.nextProps && typeof this.nextProps.visible != 'undefined' && !this.nextProps.visible) {
// don't rerender components that are not visible.
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment