Describe the bug (required)
Toggle all row selected not working for subRow
Provide an example via Codesandbox! (required)
codesandbox: https://codesandbox.io/s/crimson-river-ymw1p?file=/src/App.js
Expected behavior (Recommended)
I'm not sure if this is a bug,
when i click toggle all row checkbox,it is not working for subrow
Screenshots

Desktop (please complete the following information):
Hi @pjshu,
I think you should place useExpanded hook before useRowSelect. here is a working demo
I just checked the souce code: useRowSelect hook must be placed after these hooks: ['useFilters', 'useGroupBy', 'useSortBy']. But there is no useExpanded included in the array. So mostly this should be handled from the library, But the above change I mentioned will solve this issue.
Hi @pjshu,
I think you should place useExpanded hook before useRowSelect. here is a working demo
I just checked the souce code:
useRowSelecthook must be placed after these hooks: ['useFilters', 'useGroupBy', 'useSortBy']. But there is nouseExpandedincluded in the array. So mostly this should be handled from the library, But the above change I mentioned will solve this issue.
thanks!!!slove my problem
Most helpful comment
Hi @pjshu,
I think you should place useExpanded hook before useRowSelect. here is a working demo
I just checked the souce code:
useRowSelecthook must be placed after these hooks: ['useFilters', 'useGroupBy', 'useSortBy']. But there is nouseExpandedincluded in the array. So mostly this should be handled from the library, But the above change I mentioned will solve this issue.