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
In both special cases for a.length == 1here and b.length == 1here we can perform an update on the last node and exit the loop. At this point i == b.length (or i == a.length depending on the special case in question) because we already incremented i. The code after the loop assumes that this means no update was performed and aNode has to be removed (or bNode should be inserted). Which leads to incorrect DOM update - we either lose DOM node or we get duplicated node.
I can send you a PR if you'd like that fixes the problem.
The text was updated successfully, but these errors were encountered:
In both special cases for
a.length == 1
here andb.length == 1
here we can perform an update on the last node and exit the loop. At this pointi == b.length
(ori == a.length
depending on the special case in question) because we already incrementedi
. The code after the loop assumes that this means no update was performed andaNode
has to be removed (orbNode
should be inserted). Which leads to incorrect DOM update - we either lose DOM node or we get duplicated node.I can send you a PR if you'd like that fixes the problem.
The text was updated successfully, but these errors were encountered: