Answer the question
In order to leave comments, you need to log in
Why does it loop and how to avoid it?
componentWillUpdate() {
console.log('componentWillUpdate');
const {pageScroll} = this.props;
this.setState({
availableHeight: pageScroll ? document.querySelector('#page').clientHeight : findDOMNode(this) ? findDOMNode(this).clientHeight : 0
});
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question