ngneat / until-destroy

🦊 RxJS operator that unsubscribe from observables on destroy
https://netbasal.com/
MIT License
1.74k stars 100 forks source link

Use decorator with Singleton service (providedIn: 'root') #247

Closed TruongTheTan closed 5 months ago

TruongTheTan commented 5 months ago

I assumed that using until-destroy in Singleton service won't work because it exists through the application. My service is used for calling APIs and i don't want them always watch (observe) the response from an API even if its success (next) or fail (error). Can you update this repo or any other suggestion ?

arturovt commented 5 months ago

It works with services provided in root.