Skip to content
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

Angular: Fix some Ivy rendering glitches #15279

Merged
merged 2 commits into from
Jun 17, 2021
Merged

Angular: Fix some Ivy rendering glitches #15279

merged 2 commits into from
Jun 17, 2021

Conversation

ThibaudAV
Copy link
Contributor

@ThibaudAV ThibaudAV commented Jun 17, 2021

Issue: @yngvebn https://discord.com/channels/486522875931656193/490770949910691862/854687468321767444

What I did

  • fix(angular): call AbstractRenderer.resetCompiledComponents after full render
    to avoid having ngIf/ngFor ivy errors

  • fix(angular): destroy component when doc re render
    to correctly destroy the components after an HMR

How to test

  • Is this testable with Jest or Chromatic screenshots? 🤷‍♂️
  • Does this need a new example in the kitchen sink apps?
  • Does this need an update to the documentation?

If your answer is yes to any of these, please make sure to include it in your PR.

@nx-cloud
Copy link

nx-cloud bot commented Jun 17, 2021

Nx Cloud Report

CI ran the following commands for commit 27579f8. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch

Status Command
#000000 nx run-many --target=prepare --all --parallel --max-parallel=15

Sent with 💌 from NxCloud.

@ThibaudAV ThibaudAV added the bug label Jun 17, 2021
Copy link
Member

@shilman shilman left a comment

Choose a reason for hiding this comment

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

LGTM, i guess? 🤷

@ThibaudAV ThibaudAV marked this pull request as ready for review June 17, 2021 13:11
@shilman shilman changed the title Angular : some fix for ivy Angular: Fix some Ivy rendering glitches Jun 17, 2021
@shilman shilman merged commit b44df1d into next Jun 17, 2021
@shilman shilman deleted the angular/fix-ivy branch June 17, 2021 13:12
@yngvebn
Copy link
Contributor

yngvebn commented Jun 17, 2021

A bit late to the party, but I can confirm that the errors are gone in my repro. 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants