Skip to content

Commit 44dd9be

Browse files
committed
note on unique key functions
1 parent cc10036 commit 44dd9be

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/components/DiagramWrapper.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ export class DiagramWrapper extends React.Component<DiagramProps, {}> {
9494
data.key = k;
9595
return k;
9696
}
97+
// NOTE: the above "KeyFunction"s are simplistic and loop over data to avoid key collisions,
98+
// they are not suitable for applications with lots of data
9799
})
98100
});
99101

0 commit comments

Comments
 (0)