Skip to content

fix(core): ensure template IDs are not reused if a source file changes#60152

Closed
atscott wants to merge 1 commit intoangular:mainfrom
atscott:compilertemplateId
Closed

fix(core): ensure template IDs are not reused if a source file changes#60152
atscott wants to merge 1 commit intoangular:mainfrom
atscott:compilertemplateId

Conversation

@atscott
Copy link
Copy Markdown
Contributor

@atscott atscott commented Feb 28, 2025

This commit fixes a bug where nodes are reused across incremental compilations. The source file's next template ID is lost because a new source file is created but nodes may still be retained.

@atscott atscott added the target: patch This PR is targeted for the next patch release label Feb 28, 2025
@angular-robot angular-robot bot added the area: core Issues related to the framework runtime label Feb 28, 2025
@ngbot ngbot bot added this to the Backlog milestone Feb 28, 2025
Copy link
Copy Markdown
Member

@JoostK JoostK left a comment

Choose a reason for hiding this comment

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

Should this be fix(compiler-cli), not core?

@JoostK JoostK 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 Feb 28, 2025
…e changes

This commit fixes a bug where nodes are reused across incremental
compilations. The source file's next template ID is lost because a new
source file is created but nodes may still be retained.
@angular-robot angular-robot bot added area: compiler Issues related to `ngc`, Angular's template compiler and removed area: core Issues related to the framework runtime labels Feb 28, 2025
@atscott atscott 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 Feb 28, 2025
@mmalerba
Copy link
Copy Markdown
Contributor

This PR was merged into the repository by commit f9043e2.

The changes were merged into the following branches: main, 19.2.x

@mmalerba mmalerba closed this in f9043e2 Feb 28, 2025
mmalerba pushed a commit that referenced this pull request Feb 28, 2025
…e changes (#60152)

This commit fixes a bug where nodes are reused across incremental
compilations. The source file's next template ID is lost because a new
source file is created but nodes may still be retained.

PR Close #60152
@angular-automatic-lock-bot
Copy link
Copy Markdown

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 policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Mar 31, 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: compiler Issues related to `ngc`, Angular's template compiler target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants