mirror of
https://github.com/gosticks/react-table.git
synced 2026-10-04 23:06:56 +00:00
Update Changelog
This commit is contained in:
+6
-6
@@ -1,13 +1,13 @@
|
||||
{
|
||||
"dist/index.js": {
|
||||
"bundled": 104720,
|
||||
"minified": 48438,
|
||||
"gzipped": 13005
|
||||
"bundled": 104748,
|
||||
"minified": 48453,
|
||||
"gzipped": 13021
|
||||
},
|
||||
"dist/index.es.js": {
|
||||
"bundled": 103833,
|
||||
"minified": 47648,
|
||||
"gzipped": 12849,
|
||||
"bundled": 103861,
|
||||
"minified": 47663,
|
||||
"gzipped": 12865,
|
||||
"treeshaked": {
|
||||
"rollup": {
|
||||
"code": 80,
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
## 7.0.0-rc.11
|
||||
|
||||
- Fixed an issue where plugins using the `columns` hook were not getting decorated properly
|
||||
|
||||
## 7.0.0-rc.10
|
||||
|
||||
- Optimizations made to make accessors, prop getters and other internals much faster. 10x in some cases!
|
||||
|
||||
@@ -126,16 +126,16 @@ function reducer(state, action, previousState, instance) {
|
||||
return state
|
||||
}
|
||||
|
||||
let newSelectedRowPaths = { ...state.selectedRowIds }
|
||||
let newSelectedRowIds = { ...state.selectedRowIds }
|
||||
|
||||
const handleRowById = id => {
|
||||
const row = flatGroupedRowsById[id]
|
||||
|
||||
if (!row.isGrouped) {
|
||||
if (!isSelected && shouldExist) {
|
||||
newSelectedRowPaths[id] = true
|
||||
newSelectedRowIds[id] = true
|
||||
} else if (isSelected && !shouldExist) {
|
||||
delete newSelectedRowPaths[id]
|
||||
delete newSelectedRowIds[id]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -146,9 +146,11 @@ function reducer(state, action, previousState, instance) {
|
||||
|
||||
handleRowById(id)
|
||||
|
||||
console.log(newSelectedRowIds)
|
||||
|
||||
return {
|
||||
...state,
|
||||
selectedRowIds: newSelectedRowPaths,
|
||||
selectedRowIds: newSelectedRowIds,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user