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

refactor(core): Simplify event handler extraction logic. #55752

Closed
wants to merge 1 commit into from

Conversation

iteriani
Copy link
Contributor

This reuses information already recorded during hydration to remove jsaction attributes to also stash event handlers. This avoids a tree walk and looku.

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Copy link
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

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

@iteriani looks great 👍

packages/core/src/hydration/event_replay.ts Show resolved Hide resolved
packages/core/src/hydration/event_replay.ts Outdated Show resolved Hide resolved
packages/core/src/hydration/event_replay.ts Outdated Show resolved Hide resolved
packages/core/src/hydration/event_replay.ts Outdated Show resolved Hide resolved
@AndrewKushnir AndrewKushnir added target: rc This PR is targeted for the next release-candidate area: core Issues related to the framework runtime core: event dispatch labels May 10, 2024
@ngbot ngbot bot added this to the Backlog milestone May 10, 2024
@AndrewKushnir AndrewKushnir added the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label May 10, 2024
@iteriani iteriani added action: merge The PR is ready for merge by the caretaker and removed action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews labels May 13, 2024
@iteriani iteriani force-pushed the simplify-event-replay branch 2 times, most recently from f09d338 to e0d9f99 Compare May 14, 2024 18:51
… extraction logic.

This should have been part of an earlier commit, but was not merged.
Copy link
Contributor

@AndrewKushnir AndrewKushnir left a comment

Choose a reason for hiding this comment

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

@iteriani do we need a new presubmit (regular, not a TGP one) for this change? I'm removing the "merge" label for now, please re-add if we've ran a presubmit already.

@AndrewKushnir AndrewKushnir removed the action: merge The PR is ready for merge by the caretaker label May 15, 2024
@iteriani
Copy link
Contributor Author

this presubmit was actually done already, but for some reason only one of the commits got merged.

@AndrewKushnir AndrewKushnir added the action: presubmit The PR is in need of a google3 presubmit label May 16, 2024
@AndrewKushnir
Copy link
Contributor

FYI, I've started a new presubmit for the changes in this PR (since the other part of the change has landed separately).

@AndrewKushnir AndrewKushnir added action: merge The PR is ready for merge by the caretaker and removed action: presubmit The PR is in need of a google3 presubmit labels May 17, 2024
@dylhunn
Copy link
Contributor

dylhunn commented May 21, 2024

This PR was merged into the repository by commit d75adc5.

@dylhunn dylhunn closed this in d75adc5 May 21, 2024
dylhunn pushed a commit that referenced this pull request May 21, 2024
… extraction logic. (#55752)

This should have been part of an earlier commit, but was not merged.

PR Close #55752
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime core: event dispatch target: rc This PR is targeted for the next release-candidate
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants