@@ -26,26 +26,23 @@ export default class ContainerQuery extends Component {
2626 } ;
2727
2828 componentDidMount ( ) {
29- if ( ! this . props . meta && ! this . props . stats ) {
29+ if ( ! this . props . meta ) {
3030 return ;
3131 }
3232
3333 this . lastContainer = ReactDOM . findDOMNode ( this ) ;
34- const meta = this . props . meta || this . props . stats ;
35- new Container ( this . lastContainer , meta , this . containerOptions ) ;
34+ new Container ( this . lastContainer , this . props . meta , this . containerOptions ) ;
3635 }
3736
3837 componentDidUpdate ( ) {
39- if ( ! this . props . meta && ! this . props . stats ) {
38+ if ( ! this . props . meta ) {
4039 return ;
4140 }
4241
43- const meta = this . props . meta || this . props . stats ;
44-
4542 const element = ReactDOM . findDOMNode ( this ) ;
4643 if ( this . lastContainer !== element ) {
4744 this . lastContainer = element ;
48- new Container ( this . lastContainer , meta , this . containerOptions ) ;
45+ new Container ( this . lastContainer , this . props . meta , this . containerOptions ) ;
4946 }
5047 }
5148
@@ -65,13 +62,11 @@ export default class ContainerQuery extends Component {
6562}
6663
6764ContainerQuery . defaultProps = {
68- stats : null ,
6965 meta : null ,
7066 options : { }
7167} ;
7268
7369ContainerQuery . propTypes = {
74- stats : PropTypes . object ,
7570 meta : PropTypes . object ,
7671 options : PropTypes . object ,
7772 children : PropTypes . oneOfType ( [ PropTypes . element , PropTypes . func ] )
0 commit comments