react-table v7.0.0-rc.10 Release Notes
Release Date: 2019-12-13 // over 4 years ago-
- Optimizations made to make accessors, prop getters and other internals much faster. 10x in some cases!
- ๐ Fixed docs for
usePagination
to havepageIndex
andpageSize
only available on the state object, not the instance - โ Added a plugin order restriction to make sure
useResizeColumns
always comes beforeuseAbsoluteLayout
- ๐ Fixed the
useFinalInstance
hook to not have an empty array as the first meta argument passed. - ๐ Fixed an issue where memoized or ref-forwarded components could not be used as cell renderers
- The
toggleExpandedById
action has been renamed totoggleExpanded
- โ Added the
toggleAllExpanded
action - โ Added the
setExpanded
action - ๐ Changed
row.isAggregated
torow.isGrouped
state.expanded
andstate.selectedRowIds
are now objects ({[rowId]: Bool}
), not arrays. This should help with mid-to-large size datasets while also being serializable (instead of a Set(), which is not as reliable)state.filters
is now an array of objects ({id, value}
). Since filters do have order and can be applied incrementally, it should be an array to ensure correct order.- ๐ Moved the
flatColumns
andflatColumnsDeps
hooks to be after row/data materialization. These hooks can then manipulate theflatColumns
object after all data has been accessed without triggering row materialization again. - โ Added the
row.allCells
property and thecellColumns
reducer hook to determine which cells to create for each row. These cells are placed intorow.allCells
. The resulting cell array is not meant to be used for display in templating and is only made available for convenience and/or advanced templating. - โ Added the
cells
reducer hook to determine which cells from therow.allCells
array that should be placed intorow.cells
. The resulting cell array is the one that is intended for display in templating. - โฌ๏ธ Reducers are now passed the actual instance variable, not the instanceRef
- โ Added the
makeRenderer
utility (also exported) - โ Removed
column.groupByBoundary
functionality. If needed, use theflatColumns
hook to decorate, reorganize or re-order groupBy columns - ๐ Fixed grouped row.id's to be truly unique