Commit f7a89fb1 authored by ChamendiPabasara's avatar ChamendiPabasara

Updated componentDidUpdate

parent a9d670a2
......@@ -33,7 +33,7 @@ export default class Home extends Component {
}
});
}
//initiate downloder process
componentDidMount() {
while (this.counter < 1) {
......@@ -43,6 +43,7 @@ export default class Home extends Component {
}
}
//initiate downloder process
componentDidUpdate() {
while (this.counter < 1) {
this.downloader();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment