Skip to content

Commit

Permalink
note on unique key functions
Browse files Browse the repository at this point in the history
  • Loading branch information
jonchardy committed May 17, 2024
1 parent cc10036 commit 44dd9be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/DiagramWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,8 @@ export class DiagramWrapper extends React.Component<DiagramProps, {}> {
data.key = k;
return k;
}
// NOTE: the above "KeyFunction"s are simplistic and loop over data to avoid key collisions,
// they are not suitable for applications with lots of data
})
});

Expand Down

0 comments on commit 44dd9be

Please sign in to comment.