Best way to get unique row id ? #2219
Unanswered
justin-tufte
asked this question in
General
Replies: 2 comments
-
@justin-tufte did you find an answer for your question? I appreciate any tipps and advices. |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It looks like using row index as a unique key causes some issues when data is changed and the table body re-renders. Because of this I was looking for some sort of built in function or property maybe that the table generates to track rows. The other reason a unique id is helpful is to get rid of the React warning
Warning: Each child in a list should have a unique "key" prop.
So my question is, is there built in functionality to handle this or should I be providing my own
getRowID
function to the table in order to generate unique keys? My other option seems to be to enforce all data sets to have a unique key property.Beta Was this translation helpful? Give feedback.
All reactions