-
Notifications
You must be signed in to change notification settings - Fork 6.8k
refactor(drag-drop): remove manual observers count #15441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code-wise LGTM, but the CI is broken.
Uses the observer count from the `Subject` itself, rather than counting it manually. Relates to angular#15441.
Hi @crisbeto, I've updated the PR with the changes you asked. Ready for review. |
Sorry for the delay @vitaliy-bobrov, I must've missed the notification. It seems like the CI is failing. You should be able to fix it by running |
@crisbeto, Done, now all checks on CI pass. Ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Uses the observer count from the `Subject` itself, rather than counting it manually. Relates to #15441.
Uses the observer count from the `Subject` itself, rather than counting it manually. Relates to angular#15441.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Moved event for drag-drop uses manual observers count to prevent emitting when no observers. RxJS Subject already counts it for us, we can check
Subject.observers.length
property - https://rxjs.dev/api/index/class/Subject#properties