mirror of
https://github.com/gosticks/react-table.git
synced 2025-10-16 11:55:36 +00:00
Fix default resetSelectedRowsDeps (#1663)
* This one also is listening to rows, instead of data.
This commit is contained in:
parent
0a512adaf0
commit
764a8ce281
@ -20,7 +20,7 @@ export const useExpanded = hooks => {
|
||||
|
||||
useExpanded.pluginName = 'useExpanded'
|
||||
|
||||
const defaultGetResetExpandedDeps = instance => [instance.data]
|
||||
const defaultGetResetExpandedDeps = ({ data }) => [data]
|
||||
|
||||
function useMain(instance) {
|
||||
const {
|
||||
|
||||
@ -49,7 +49,7 @@ function useRows(rows, instance) {
|
||||
return rows
|
||||
}
|
||||
|
||||
const defaultGetResetSelectedRowPathsDeps = ({ rows }) => [rows]
|
||||
const defaultGetResetSelectedRowPathsDeps = ({ data }) => [data]
|
||||
|
||||
function useMain(instance) {
|
||||
const {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user