Changed from compDidMount to WillMount so it loads before our render function.

This commit is contained in:
2017-10-21 00:09:29 +02:00
parent 2fd515d997
commit 65c1f7ad96

View File

@@ -49,7 +49,7 @@ class SearchRequest extends React.Component {
} }
componentDidMount(){ componentWillMount(){
var that = this; var that = this;
// this.setState({responseMovieList: null}) // this.setState({responseMovieList: null})
this.resetPageNumber(); this.resetPageNumber();