react-table/src/plugin-hooks
Tanner Linsley ddfa0fa227 Death of the path, fix some hooks, fix selectedRows
- Fixed an issue where dependency hooks were not being reduced properly, thus the table would rerender unnecessarily
- Renamed `toggleRowSelectedAll` to `toggleAllRowsSelected`. Duh...
- Added an `indeterminate` boolean prop to the default props for row selection toggle prop getters
- Renamed `selectedRowPaths` to `selectedRowIds`, which also no longer contains paths, but row IDs
- Grouped or nested row selection actions and state are now derived, instead of tracked in state.
- Rows now have a new property called `id`, which existed before and was derived from the `getRowId` option
- Rows now also have an `isSomeSelected` prop when using the `useRowSelect` hook, which denotes that at least one subRow is selected (if applicable)
- Rows' `path` property has been deprecated in favor of `id`
- Expanded state is now tracked with row IDs instead of paths
- RowState is now tracked with row IDs instead of paths
- `toggleExpandedByPath` has been renamed to `toggleExpandedById`, and thus accepts a row ID now, instead of a row path
2019-12-10 23:04:34 -07:00
..
tests Death of the path, fix some hooks, fix selectedRows 2019-12-10 23:04:34 -07:00
useAbsoluteLayout.js Added/updated hooks reorganization of hooks, new hook rules 2019-12-10 11:35:05 -07:00
useBlockLayout.js Added/updated hooks reorganization of hooks, new hook rules 2019-12-10 11:35:05 -07:00
useColumnOrder.js Added/updated hooks reorganization of hooks, new hook rules 2019-12-10 11:35:05 -07:00
useExpanded.js Death of the path, fix some hooks, fix selectedRows 2019-12-10 23:04:34 -07:00
useFilters.js Added/updated hooks reorganization of hooks, new hook rules 2019-12-10 11:35:05 -07:00
useGroupBy.js Death of the path, fix some hooks, fix selectedRows 2019-12-10 23:04:34 -07:00
usePagination.js Added/updated hooks reorganization of hooks, new hook rules 2019-12-10 11:35:05 -07:00
useResizeColumns.js Fix props clobbering 2019-12-10 16:34:23 -07:00
useRowSelect.js Death of the path, fix some hooks, fix selectedRows 2019-12-10 23:04:34 -07:00
useRowState.js Death of the path, fix some hooks, fix selectedRows 2019-12-10 23:04:34 -07:00
useSortBy.js Added/updated hooks reorganization of hooks, new hook rules 2019-12-10 11:35:05 -07:00