Collection-repeat is creating too many DOM nodes

Collection-repeat is creating too many DOM nodes. I have only 10 item in my array but in Inspect i can see more then 10 DOM nodes. Why this is happening ?

Hi,

I had noticed this also whilst adding end2end tests (see this post) . I have created a PR that should help with this.

TLDR: there are 20 nodes created, regardless of the amount of entities in the data to be handled.