Skip to content

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Dec 18, 2024

Replaces all of our usages of the rxjs fromEvent with direct event listeners going through the renderer. This has a few benefits:

  • In most cases it made our code simpler and easier to follow.
  • By going through the renderer, other tooling can hook into it (e.g. the tracing service).
  • It reduces our reliance on rxjs.

I also ended up cleaning up the fragile testing setup in cdk/menu which would've broken any time we introduce a new inject call.

@crisbeto crisbeto added the target: minor This PR is targeted for the next minor release label Dec 18, 2024
Replaces all of our usages of the rxjs `fromEvent` with direct event listeners going through the renderer. This has a few benefits:
* In most cases it made our simpler and easier to follow.
* By going through the renderer, other tooling can hook into it (e.g. the tracing service).
* It reduces our reliance on rxjs.

I also ended up cleaning up the fragile testing setup in `cdk/menu` which would've broken any time we introduce a new `inject` call.
@crisbeto crisbeto force-pushed the from-event-handlers branch from f735823 to bbf2c5b Compare December 18, 2024 07:27
@crisbeto crisbeto marked this pull request as ready for review December 18, 2024 07:38
@crisbeto crisbeto requested a review from a team as a code owner December 18, 2024 07:38
@crisbeto crisbeto requested review from amysorto and andrewseguin and removed request for a team December 18, 2024 07:38
@crisbeto crisbeto removed the request for review from amysorto December 18, 2024 15:16
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Dec 18, 2024
@crisbeto crisbeto merged commit ad70e87 into angular:main Dec 18, 2024
23 checks passed
@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 Jan 18, 2025
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 target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants