Skip to content

fix(core): experimental rebuild of corrupted embedded-view TView (WIP, not ready to ship) - #70406

Draft
arturovt wants to merge 1 commit into
angular:mainfrom
arturovt:experimental/embedded-tview-incomplete-pass-rebuild
Draft

fix(core): experimental rebuild of corrupted embedded-view TView (WIP, not ready to ship)#70406
arturovt wants to merge 1 commit into
angular:mainfrom
arturovt:experimental/embedded-tview-incomplete-pass-rebuild

Conversation

@arturovt

Copy link
Copy Markdown
Contributor

Explores a root-cause fix for the NG0510 getParentRElement crash fixed on fix/core-hydration-sibling-skip-crash: rebuild an embedded view's TView when incompleteFirstPass is set, mirroring what getOrCreateComponentTView() already does for component TViews.

Confirmed manually this makes the crash disappear entirely, but it uncovers a second, separate bug: the aborted first attempt's partially-created LView/DOM is never torn down, so retried content gets appended alongside orphaned leftovers instead of replacing them (silent duplication instead of a loud crash). Not shippable as-is.

Full writeup, root-cause trace decode, and next steps in NOTES-incomplete-first-pass-tview-rebuild.md.

@angular-robot angular-robot Bot added the area: core Issues related to the framework runtime label Aug 26, 2026
@ngbot ngbot Bot added this to the Backlog milestone Aug 26, 2026
…, not ready to ship)

Explores a root-cause fix for the NG0510 getParentRElement crash fixed
on fix/core-hydration-sibling-skip-crash: rebuild an embedded view's
TView when incompleteFirstPass is set, mirroring what
getOrCreateComponentTView() already does for component TViews.

Confirmed manually this makes the crash disappear entirely, but it
uncovers a second, separate bug: the aborted first attempt's
partially-created LView/DOM is never torn down, so retried content
gets appended alongside orphaned leftovers instead of replacing them
(silent duplication instead of a loud crash). Not shippable as-is.

Full writeup, root-cause trace decode, and next steps in
NOTES-incomplete-first-pass-tview-rebuild.md.
@arturovt
arturovt force-pushed the experimental/embedded-tview-incomplete-pass-rebuild branch from a651cf1 to 246618c Compare August 26, 2026 20:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Issues related to the framework runtime

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant