After retrieving the logo through an API call, I find myself using it several times within the same page.
export class LogoService {
logo$ = this.http.get(...).pipe(shareReplay(1));
constructor(private http: HttpClient) {} }
Although this method works adequately, it results in multiple identical API calls each time the component is reused. Is there a way to minimize this to just one API call regardless of how many times it is reused?