Unsubscribing From Firefly Semantics Slice Object Store Observables in Angular

Image by Friedrich Frühling from Pixabay

Scenario

this.s.os.S.CSV_DATA.obs.subscribe(data=>console.log(data))

Approach

npm i @ngneat/until-destroy
@UntilDestroy()
@Component({
...
})
this.s.os.S.CSV_DATA.obs.pipe(untilDestroyed(this)).subscribe(...)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store