github jbetancur/react-data-table-component v2.0.0

latest releases: v7.6.2, v7.6.1, v7.6.0...
4 years ago

Release Notes

This is being released as a 2.0.0 as the sorting behavior has changed quite extensively (for the better) as well as some of the internals for dealing with React Context.

I don't really expect there to be any breaking changes with the exception of the rdt_TableCol css hook (see notes below).

Fixes

  • #139 Includes several fixes for sorting icon alignment, clickable sort area, and changes in sorting behavior. The expectation on the latter is that the sort direction should only change if the currently selected column is clicked again (asc, to desc etc....). Therefore, when selecting a new column, that column will be sorted based on the previous sort direction.

Maintenance

  • #82 Moved away from render props to the new useContext hooks. Aside from making the code way more readable, this will help to clean up the DOM tree when using React Dev Tools and hopefully have some positive impact on performance
  • Bumped internal package deps

🔥 Possible Breaking Changes 🔥

  • if you applied any customization using the css class rdt_TableCol, you may need to refactor. rdt_TableCol_Sortable was added if you want to specifically target the sort css. Sorry about this but the TableCol component required some extensive refactor to make sorting work as it should.

Don't miss a new react-data-table-component release

NewReleases is sending notifications on new releases.