Releases: jbetancur/react-data-table-component
Releases · jbetancur/react-data-table-component
7.0.0-alpha-6
🔥 Breaking Changes 🔥
sortFunction
prop signature has changed, This was necessary because RDT is moving to function only selectors which are more flexible and performant. Additionally, this allows the API user greater control over how they sort. See the README for details Custom Sort Function.
Fixes
- Cleanup of stale sorting logic and CSS styles
- #612 and #699 The TableHeadRow is no longer disabled when in a loading state. Instead, each TableCol is disabled from sorting
- #772 fixes a potential performance issue with large data sets and
conditionalCells
and `conditionalRows1 - #775
sortServer
should now disable internal sorting as it did in v6
Deprecation
- #770 string selectors will display a console warning on non prod builds recommended you migrate to function selectors. This change is rather painless:
selector: 'name'
becomesselector: row => row.name
. This not only allows for typing but also no longer requires an expensive regex/reduce function to loop through a row to "get' the prop
7.0.0-alpha-5
- implements #756
- fixes initial row rendering
7.0.0-alpha-4
This is a major refactor to TypeScript as well as some long-running bugs:
Breaking Changes
v6.11.6
Fixes
- #684 addresses an issue if you were using custom cells then any properly that enabled RowClick events did not fire a click event back to the RowClick handler. If you are using properties such as:
onRowClicked
,onRowDoubleClicked
,expandOnRowClicked
orexpandOnRowDoubleClicked
then those click events will be ignored when clicking on your custom cell. To allowRowClicked
events you can adddata-tag="allowRowEvents"
to your custom cell component elements. If your custom cell component is more complex and has nested elements you want to adddata-tag="allowRowEvents"
to the innermost element or on the elements you want to propagate the click event to. For example:row => <h2 data-tag="allowRowEvents">{row.title}</h2>
Maintenance
- #715 Update eslint libs and fix various lint errors