Skip to content

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

Merged
merged 1 commit into from
Jun 17, 2020

Conversation

crisbeto
Copy link
Member

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.

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.
@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent merge safe target: patch This PR is targeted for the next patch release labels Apr 12, 2020
@crisbeto crisbeto requested a review from andrewseguin as a code owner April 12, 2020 16:49
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Apr 12, 2020
@@ -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>();
Copy link
Contributor

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

Copy link
Member Author

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.

@jelbourn jelbourn requested a review from kseamon April 14, 2020 16:48
@andrewseguin andrewseguin added lgtm action: merge The PR is ready for merge by the caretaker labels Jun 15, 2020
@mmalerba mmalerba merged commit fee5810 into angular:master Jun 17, 2020
mmalerba pushed a commit that referenced this pull request Jun 17, 2020
…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.
devversion pushed a commit to devversion/material2 that referenced this pull request Jun 18, 2020
…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.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jul 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants