Angular Transfer State not preventing repeat http calls
I have the http request being made a service which is injected onto my component and subscribed to from there. Since I introduced server side rendering with angular universal to my application, the results on the page are repeated at least twice. I have method which is called on click, which performs the http request to facebook's api getAlbum(albumId: number) { this.albumPhotos = this.state.get(ALBUM_PHOTOS_KEY, null as any); if (!this.albumPhotos) { this.facebookService.getBachadiffAlbumPhotos(albumId).subscribe(res => { this.bachataPicsArray = res; this.state.set(ALBUM_PHOTOS_KEY, res as