mobxjs / mobx-angular

The MobX connector for Angular.
MIT License
483 stars 59 forks source link

mobxAngularDebug(true) disables rxJs stream #64

Closed roger-gl closed 4 years ago

roger-gl commented 6 years ago

this stops working as soon as debug is set to true:

from(toStream( () => this.otherTitle = this.getTitle(), true)).subscribe(l => console.log(l));

(toStream is from mobx-utils)

adamkleingit commented 6 years ago

Hi, can you reproduce here: https://stackblitz.com/edit/angular-usygae?file=app%2Fapp.component.html

roger-gl commented 6 years ago

No, because I get: mobxAngularDebug is not defined in the console

adamkleingit commented 6 years ago

Yes because you need to click on the "open in new window" button at the top right: image

And then it's available