Currently the _itemKey looks like this:
_itemKey({ rowIndex }) {
const { data, rowKey } = this.props;
return data[rowIndex][rowKey];
}
However if you use a non-standard way of getting values with a dataGetter defined for the column, this will fail.
For instance, in the project I'm doing now, I use a dataGetter to calculate row numbers and display them in a table. However it's not possible to use this value as a rowKey because of the above.
Instead the dataGetter for the column in question should be called if it exists.
Currently the _itemKey looks like this:
_itemKey({ rowIndex }) {
const { data, rowKey } = this.props;
return data[rowIndex][rowKey];
}
However if you use a non-standard way of getting values with a dataGetter defined for the column, this will fail.
For instance, in the project I'm doing now, I use a dataGetter to calculate row numbers and display them in a table. However it's not possible to use this value as a rowKey because of the above.
Instead the dataGetter for the column in question should be called if it exists.