Michael Karén
1 min readAug 29, 2019

--

Hi Pal Singh,

Not sure about your use case but you should probably avoid multiple subscriptions to the same http.get observable. What you can do is use the share() operator, so that when you have more than one subscribe, then you do not do multiple api calls, but instead share the data.

--

--

Michael Karén
Michael Karén

Written by Michael Karén

Frontend Architect • JavaScript Enthusiast • Educative.io Author • ngVikings organizer.

No responses yet