I have a http call which when starts calling first few seconds is error 404 until the result is coming to database:
this.http.get(`http://localhost:44301/consentinitiation/${this.qid}`).subscribe(s=>{
console.log(s);
},error=>(error));
what i thought is to put it inside while
shouldCall=true;
while(shouldCall){
this.http.get(`http://localhost:44301/consentinitiation/${this.qid}`).subscribe(s=>{
console.log(s);
shouldCall=false;
},error=>(error));}
the problem is the browser crashes with this approach, any idea?