I learned that I have to use both of these functions when I'm working with Http requests, I've learned that you have to use both of these functions as a cake recipe, which you use and ready, I wanted to know why you should use it. >
Example of using both functions:
public pesquisaOferta(termo: string): Observable<Oferta[]> {
return this.http.get(URL_API + "?descricao_oferta_like=" + termo)
.pipe(
retry(10),
map((response: any) => {
return response
})
)
}
If I'm not mistaken, I've seen the use of the two functions in a different way, but I'm alluding to why I use them.