Skip to content

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

Closed
atscott wants to merge 1 commit intoangular:mainfrom
atscott:rxjs6dep
Closed

fix(core): update imports to be compatible with rxjs 6#54193
atscott wants to merge 1 commit intoangular:mainfrom
atscott:rxjs6dep

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
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

Development

Successfully merging this pull request may close these issues.

Testing fails on 17.1.2 with a slightly older rxjs: export 'firstValueFrom' (imported as 'firstValueFrom') was not found in 'rxjs'

6 participants