angular icon indicating copy to clipboard operation
angular copied to clipboard

fix(core): handle elements with local refs in event replay serialization logic

Open AndrewKushnir opened this issue 1 month ago • 1 comments

Previously, the event replay serialization logic was located before we verify that a TNode exists. TNodes may not exist in tView.data array in several cases, including cases when there is a local ref used on an element: in this case an extra slot in LView contains a reference to the same element and TNode is not needed. This commit moves the event replay serialization logic a bit lower, after we check for TNode presence.

Resolves #56073.

PR Type

What kind of change does this PR introduce?

  • [x] Bugfix

Does this PR introduce a breaking change?

  • [ ] Yes
  • [x] No

AndrewKushnir avatar May 24 '24 22:05 AndrewKushnir