fix(compiler-cli): preserve defer block dependencies during HMR when class metadata is disabled by crisbeto · Pull Request #59313 · angular/angular · GitHub
Skip to content

fix(compiler-cli): preserve defer block dependencies during HMR when class metadata is disabled - #59313

Closed
crisbeto wants to merge 1 commit into
angular:mainfrom
crisbeto:59310/hmr-defer-block
Closed

crisbeto wants to merge 1 commit into
angular:mainfrom
crisbeto:59310/hmr-defer-block

Conversation

@crisbeto

Copy link
Copy Markdown
Member

Fixes that the compiler wasn't capturing defer block dependencies correctly when supportTestBed is disabled. We had tests for this, but we didn't notice the issue because the dependencies ended up being captured because of the setClassMetadata calls. Once they're disabled, the dependencies stopped being recorded.

Fixes #59310.

…class metadata is disabled

Fixes that the compiler wasn't capturing defer block dependencies correctly when `supportTestBed` is disabled. We had tests for this, but we didn't notice the issue because the dependencies ended up being captured because of the `setClassMetadata` calls. Once they're disabled, the dependencies stopped being recorded.

Fixes angular#59310.
@crisbeto crisbeto added action: review The PR is still awaiting reviews from at least one requested reviewer target: patch This PR is targeted for the next patch release labels Dec 27, 2024
@AndrewKushnir AndrewKushnir removed the action: review The PR is still awaiting reviews from at least one requested reviewer label Dec 27, 2024
@crisbeto crisbeto added the action: merge The PR is ready for merge by the caretaker label Dec 27, 2024
@thePunderWoman thePunderWoman added the area: compiler Issues related to `ngc`, Angular's template compiler label Jan 6, 2025
@ngbot ngbot Bot added this to the Backlog milestone Jan 6, 2025
@thePunderWoman

Copy link
Copy Markdown
Contributor

thePunderWoman pushed a commit that referenced this pull request Jan 6, 2025
…class metadata is disabled (#59313)

Fixes that the compiler wasn't capturing defer block dependencies correctly when `supportTestBed` is disabled. We had tests for this, but we didn't notice the issue because the dependencies ended up being captured because of the `setClassMetadata` calls. Once they're disabled, the dependencies stopped being recorded.

Fixes #59310.

PR Close #59313
@angular-automatic-lock-bot

Copy link
Copy Markdown

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Feb 6, 2025
PrajaktaB27 pushed a commit to PrajaktaB27/angular that referenced this pull request Feb 7, 2025
…class metadata is disabled (angular#59313)

Fixes that the compiler wasn't capturing defer block dependencies correctly when `supportTestBed` is disabled. We had tests for this, but we didn't notice the issue because the dependencies ended up being captured because of the `setClassMetadata` calls. Once they're disabled, the dependencies stopped being recorded.

Fixes angular#59310.

PR Close angular#59313
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.

Generated HMR metadata update function doesn't include proper imports when using defer blocks

3 participants