This actually shouldn't be necessary.
This commit is contained in:
@@ -25,10 +25,6 @@ module.exports = React.createClass({
|
|||||||
this._updateChildren(this.props.children);
|
this._updateChildren(this.props.children);
|
||||||
},
|
},
|
||||||
|
|
||||||
componentWillUnmount: function() {
|
|
||||||
this._updateChildren([]);
|
|
||||||
},
|
|
||||||
|
|
||||||
componentWillReceiveProps: function(nextProps) {
|
componentWillReceiveProps: function(nextProps) {
|
||||||
this._updateChildren(nextProps.children);
|
this._updateChildren(nextProps.children);
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user