You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 20, 2018. It is now read-only.
My monitorSubscriberCount operator merely calls back the specified method whenever a subscription is added/removed. What I find weird about this though is that I have had to add .distinctUntilChanged in order to make it work. Without it, it seems the .map operator is not remapping the source data into the target.
To see this problem in action clone https://github.com/mrpmorris/rxjs-garbage-collect and then type "ng test" in a command prompt. Note how everything works fine, but then removing the .distinctUntilChanged line in /src/rxjs-garbage-collect/src/selectors/StateSelector.ts breaks everything.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I'm hoping someone can explain something to me. In this file -> https://github.com/mrpmorris/rxjs-garbage-collect/blob/master/src/rxjs-garbage-collect/src/selectors/StateSelector.ts
...there is a chunk of code that looks like this
My monitorSubscriberCount operator merely calls back the specified method whenever a subscription is added/removed. What I find weird about this though is that I have had to add .distinctUntilChanged in order to make it work. Without it, it seems the .map operator is not remapping the source data into the target.
To see this problem in action clone https://github.com/mrpmorris/rxjs-garbage-collect and then type "ng test" in a command prompt. Note how everything works fine, but then removing the .distinctUntilChanged line in /src/rxjs-garbage-collect/src/selectors/StateSelector.ts breaks everything.
The text was updated successfully, but these errors were encountered: