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
I have taken care of generating unique ids for each list item. Ideally, removal of an item from array should just remove the corresponding node instead of re-rendering the whole list.
The text was updated successfully, but these errors were encountered:
@brijeshb42 Nevermind. We are just reattaching event listeners, the DOM nodes are not recreated.
The reason the nodes are flashing is because the algorithm is changing their order with element.insertBefore inside patch. There's still room for improvement, however and I'd like to implement a more complex algorithm as described right here.
Here's a gif from Firefox devtools
The code that I used is here
I have taken care of generating unique ids for each list item. Ideally, removal of an item from array should just remove the corresponding node instead of re-rendering the whole list.
The text was updated successfully, but these errors were encountered: