Skip to content
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

fix(core): update imports to be compatible with rxjs 6 #54193

Closed
wants to merge 1 commit into from

Conversation

atscott
Copy link
Contributor

@atscott atscott commented Feb 1, 2024

Peer dependency range allows for rxjs 6. We cannot use features only available in rxjs 7 unless that changes.

fixes #54192

Peer dependency range allows for rxjs 6. We cannot use features only
available in rxjs 7 unless that changes.

fixes angular#54192
@atscott atscott added area: core Issues related to the framework runtime target: patch This PR is targeted for the next patch release labels Feb 1, 2024
@ngbot ngbot bot added this to the Backlog milestone Feb 1, 2024
@@ -194,7 +194,7 @@ export class ScheduledComponentFixture<T> extends ComponentFixture<T> {
if (this.isStable()) {
return Promise.resolve(false);
}
return firstValueFrom(this._appRef.isStable.pipe(filter(stable => stable)));
return this._appRef.isStable.pipe(first(stable => stable)).toPromise().then(() => true);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI we had to ban first from Components because there was some sort of gotcha where it throws if it completes before emitting. We use take(1) everywhere instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I usually use filter...take(1) as well though in this case was trying to just match what's used in application_ref. FWIW, isStable never completes unless ApplicationRef is disposed.

@atscott atscott added the action: merge The PR is ready for merge by the caretaker label Feb 1, 2024
jessicajaniuk pushed a commit that referenced this pull request Feb 1, 2024
Peer dependency range allows for rxjs 6. We cannot use features only
available in rxjs 7 unless that changes.

fixes #54192

PR Close #54193
@jessicajaniuk
Copy link
Contributor

This PR was merged into the repository by commit 3cf612c.

@roxheifraholli1
Copy link

Hi which version of Angular 17 contains this fix?

Which packages do I have to change for this fix to work?

Is it not yet published on npmjs ?

@JeanMeche
Copy link
Member

JeanMeche commented Feb 2, 2024

It will be shiped in next week's patch release !

@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 Mar 4, 2024
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 area: core Issues related to the framework runtime target: patch This PR is targeted for the next patch release
Projects
None yet
6 participants