-
Notifications
You must be signed in to change notification settings - Fork 26.2k
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
Closed
+275
−269
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9fe7062
to
967115f
Compare
pkozlowski-opensource
approved these changes
May 16, 2025
967115f
to
cb000e8
Compare
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.
cb000e8
to
15a244e
Compare
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
andelementContainerStart
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
andelementContainerEnd
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.