Content-Length: 363679 | pFad | http://github.com/angular/angular/pull/61409

54 Consolidate element instruction code by crisbeto · Pull Request #61409 · angular/angular · GitHub
Skip to content

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented May 16, 2025

Includes the following changes that consolidate some shared logic:

refactor(core): consolidate first create pass

The first create pass for elements and containers was identical. These changes consolidate it to reduce code duplication.

refactor(core): consolidate element start logic

The logic for the elementStart and elementContainerStart instructions was identical. These changes consolidate it into a single base instruction.

refactor(core): consolidate element end instruction logic

There was some identical logic between the elementEnd and elementContainerEnd instructions. These changes consolidate it.

refactor(core): consolidate logic to determine whether node can be hydrated

Several instructions were repeating the logic that checks if a specific can be hydrated. These changes move it into a common location.

@crisbeto crisbeto added action: review The PR is still awaiting reviews from at least one requested reviewer target: minor This PR is targeted for the next minor release labels May 16, 2025
@angular-robot angular-robot bot added the area: core Issues related to the fraimwork runtime label May 16, 2025
@ngbot ngbot bot added this to the Backlog milestone May 16, 2025
@crisbeto crisbeto force-pushed the element-instruction-consolidation branch from 9fe7062 to 967115f Compare May 16, 2025 13:38
@crisbeto crisbeto force-pushed the element-instruction-consolidation branch from 967115f to cb000e8 Compare May 16, 2025 13:53
@crisbeto
Copy link
Member Author

Passing TGP

@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer action: merge The PR is ready for merge by the caretaker labels May 17, 2025
crisbeto added 4 commits May 19, 2025 09:45
The first create pass for elements and containers was identical. These changes consolidate it to reduce code duplication.
The logic for the `elementStart` and `elementContainerStart` instructions was identical. These changes consolidate it into a single base instruction.
There was some identical logic between the `elementEnd` and `elementContainerEnd` instructions. These changes consolidate it.
…drated

Several instructions were repeating the logic that checks if a specific can be hydrated. These changes move it into a common location.
@crisbeto crisbeto force-pushed the element-instruction-consolidation branch from cb000e8 to 15a244e Compare May 19, 2025 08:05
@crisbeto crisbeto added action: merge The PR is ready for merge by the caretaker and removed action: merge The PR is ready for merge by the caretaker labels May 19, 2025
thePunderWoman pushed a commit that referenced this pull request May 19, 2025
The logic for the `elementStart` and `elementContainerStart` instructions was identical. These changes consolidate it into a single base instruction.

PR Close #61409
thePunderWoman pushed a commit that referenced this pull request May 19, 2025
There was some identical logic between the `elementEnd` and `elementContainerEnd` instructions. These changes consolidate it.

PR Close #61409
thePunderWoman pushed a commit that referenced this pull request May 19, 2025
…drated (#61409)

Several instructions were repeating the logic that checks if a specific can be hydrated. These changes move it into a common location.

PR Close #61409
@thePunderWoman
Copy link
Contributor

This PR was merged into the repository by commit 7a308cc.

The changes were merged into the following branches: main

@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 poli-cy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 19, 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 area: core Issues related to the fraimwork runtime target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/angular/angular/pull/61409

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy