-
Notifications
You must be signed in to change notification settings - Fork 6.8k
refactor(cdk-experimental/column-resize): clean up ReplaySubject usages #19057
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
refactor(cdk-experimental/column-resize): clean up ReplaySubject usages #19057
Conversation
Replaces some usages of `ReplaySubject` with a plain `Subject` since we don't use ReplaySubject anywhere else in the codebase and in these cases it doesn't provide any benefit. This should lead to less code being imported as a result of the CDK.
@@ -27,7 +27,7 @@ let nextId = 0; | |||
*/ | |||
@Directive() | |||
export abstract class ColumnResize implements AfterViewInit, OnDestroy { | |||
protected readonly destroyed = new ReplaySubject<void>(); | |||
protected readonly destroyed = new Subject<void>(); |
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.
Is there any chance of something being destroyed before we subscribe to it? In that case the ReplaySubject
would actually be important
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.
There are only internal subscriptions to this subject so it shouldn't be possible.
…es (#19057) Replaces some usages of `ReplaySubject` with a plain `Subject` since we don't use ReplaySubject anywhere else in the codebase and in these cases it doesn't provide any benefit. This should lead to less code being imported as a result of the CDK.
…es (angular#19057) Replaces some usages of `ReplaySubject` with a plain `Subject` since we don't use ReplaySubject anywhere else in the codebase and in these cases it doesn't provide any benefit. This should lead to less code being imported as a result of the CDK.
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. |
Replaces some usages of
ReplaySubject
with a plainSubject
since we don't use ReplaySubject anywhere else in the codebase and in these cases it doesn't provide any benefit. This should lead to less code being imported as a result of the CDK.