Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Consolidate element instruction code #61409

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

Closed

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

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 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
Morty Proxy This is a proxified and sanitized view of the page, visit original site.