This commit is contained in:
Mateusz Gruszczyński committed 2026-10-18 14:45:59 +02:00
1 parent 5cb6960b04
commit 0d7ffea17a
13 files changed
+17 -135

No files matched your search

-3
View File
@@ -4,9 +4,6 @@
* See LICENSE.md for terms.
*/
// Preserve existing nodes. Remove stale entries first: otherwise deleting a
// user near the start of a 1000-person list would move every following node.
// `desired` must contain each node at most once.
export function reconcileChildren(container, desired) {
const retained = new Set(desired);
for (const node of [...container.childNodes]) {