Skip to content

Commit e4c62fd

Browse files
log warning in console if duplicate ids are detected.
1 parent 10224e0 commit e4c62fd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/idiomorph.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,6 +1182,9 @@ var Idiomorph = (function () {
11821182
for (const id of duplicateIds) {
11831183
persistentIds.delete(id);
11841184
}
1185+
if (duplicateIds.size) {
1186+
console.warn("[Warning] duplicate ids found during morph, state loss within these elements is possible:", Array.from(duplicateIds));
1187+
}
11851188
return persistentIds;
11861189
}
11871190

0 commit comments

Comments
 (0)