@@ -26,26 +26,23 @@ export default class ContainerQuery extends Component {
26
26
} ;
27
27
28
28
componentDidMount ( ) {
29
- if ( ! this . props . meta && ! this . props . stats ) {
29
+ if ( ! this . props . meta ) {
30
30
return ;
31
31
}
32
32
33
33
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 ) ;
36
35
}
37
36
38
37
componentDidUpdate ( ) {
39
- if ( ! this . props . meta && ! this . props . stats ) {
38
+ if ( ! this . props . meta ) {
40
39
return ;
41
40
}
42
41
43
- const meta = this . props . meta || this . props . stats ;
44
-
45
42
const element = ReactDOM . findDOMNode ( this ) ;
46
43
if ( this . lastContainer !== element ) {
47
44
this . lastContainer = element ;
48
- new Container ( this . lastContainer , meta , this . containerOptions ) ;
45
+ new Container ( this . lastContainer , this . props . meta , this . containerOptions ) ;
49
46
}
50
47
}
51
48
@@ -65,13 +62,11 @@ export default class ContainerQuery extends Component {
65
62
}
66
63
67
64
ContainerQuery . defaultProps = {
68
- stats : null ,
69
65
meta : null ,
70
66
options : { }
71
67
} ;
72
68
73
69
ContainerQuery . propTypes = {
74
- stats : PropTypes . object ,
75
70
meta : PropTypes . object ,
76
71
options : PropTypes . object ,
77
72
children : PropTypes . oneOfType ( [ PropTypes . element , PropTypes . func ] )
0 commit comments