-
Notifications
You must be signed in to change notification settings - Fork 25.8k
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
fix(core): make component id generation more stable between client and server builds #58813
Closed
Conversation
This file contains 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
AndrewKushnir
added
action: review
The PR is still awaiting reviews from at least one requested reviewer
area: i18n
Issues related to localization and internationalization
area: core
Issues related to the framework runtime
target: patch
This PR is targeted for the next patch release
core: hydration
labels
Nov 22, 2024
angular-robot
bot
added
area: core
Issues related to the framework runtime
and removed
area: core
Issues related to the framework runtime
labels
Nov 22, 2024
…d server builds For components with i18n in templates, the `consts` array is generated by the compiler as a function. If client and server bundles were produced with different minification configurations, the serializable contents of the function body would be different on the client and on the server. This might result in different ids generated. To avoid this issue, this commit updates the logic to not take the `consts` contents into account if it's a function. Resolves angular#58713.
AndrewKushnir
force-pushed
the
i18n_hydration_comp_ids
branch
from
November 22, 2024 04:46
b625519
to
380b2b6
Compare
angular-robot
bot
added
area: core
Issues related to the framework runtime
and removed
area: core
Issues related to the framework runtime
labels
Nov 22, 2024
alan-agius4
approved these changes
Nov 22, 2024
AndrewKushnir
added
action: presubmit
The PR is in need of a google3 presubmit
and removed
action: review
The PR is still awaiting reviews from at least one requested reviewer
labels
Nov 22, 2024
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
Nov 22, 2024
thePunderWoman
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
Nov 22, 2024
thePunderWoman
pushed a commit
that referenced
this pull request
Nov 22, 2024
…d server builds (#58813) For components with i18n in templates, the `consts` array is generated by the compiler as a function. If client and server bundles were produced with different minification configurations, the serializable contents of the function body would be different on the client and on the server. This might result in different ids generated. To avoid this issue, this commit updates the logic to not take the `consts` contents into account if it's a function. Resolves #58713. PR Close #58813
This PR was merged into the repository by commit 834c7c3. The changes were merged into the following branches: main, 19.0.x |
danymarques
pushed a commit
to danymarques/angular
that referenced
this pull request
Nov 28, 2024
…d server builds (angular#58813) For components with i18n in templates, the `consts` array is generated by the compiler as a function. If client and server bundles were produced with different minification configurations, the serializable contents of the function body would be different on the client and on the server. This might result in different ids generated. To avoid this issue, this commit updates the logic to not take the `consts` contents into account if it's a function. Resolves angular#58713. PR Close angular#58813
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
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 framework runtime
area: i18n
Issues related to localization and internationalization
core: hydration
target: patch
This PR is targeted for the next patch 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.
For components with i18n in templates, the
consts
array is generated by the compiler as a function. If client and server bundles were produced with different minification configurations, the serializable contents of the function body would be different on the client and on the server. This might result in different ids generated. To avoid this issue, this commit updates the logic to not take theconsts
contents into account if it's a function.Resolves #58713.
Does this PR introduce a breaking change?