You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Transplanted views are change detected regardless if they're detached from CD when inside OnPush components #46973
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
No
Description
This is possibly a regression from ivy.
When you create an embedded view and detach it, angular will run CD in it as long as it's inside a OnPush component and it has at least one attached template.
This happens because we do:
Find all templates that need to be CDed down the tree
if the component is NOT Dirty or CheckAlways then we start CDing the templates, as long as the template count is > 0
We never check if the template is attached once we reach this step. So if you have 2 transplanted views the TRANSPLANTED_VIEWS_COUNT will be 2 and both views will be CDed
Please provide a link to a minimal reproduction of the bug
Activity
pkozlowski-opensource commentedon Aug 9, 2022
This issue was fixed by #46974
angular-automatic-lock-bot commentedon Sep 9, 2022
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.