You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue that I have is that I'm using the hook implemented in the example for useRowSelect, however, when compiling, I get the following error message:
TypeError: Cannot read property 'push' of undefined
I made sure that the version of react-table I'm using is the correct one by having "react-table": "latest", in package.json as in the example. However I still have that visibleColumns is undefined.
I tried replacing visibleColumns by columns, which actually compiles, but then the checkboxes are disabled if I apply any filter or sort.
Is there a way to fix this? or maybe a different way of implementing row selection?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I've been trying to implement the example available in:
https://github.com/tannerlinsley/react-table/tree/master/examples/kitchen-sink
I've adapted the same type of code and the only different is the columns and data:
The issue that I have is that I'm using the hook implemented in the example for useRowSelect, however, when compiling, I get the following error message:
TypeError: Cannot read property 'push' of undefined
I made sure that the version of react-table I'm using is the correct one by having
"react-table": "latest",
inpackage.json
as in the example. However I still have thatvisibleColumns
is undefined.I tried replacing
visibleColumns
bycolumns
, which actually compiles, but then the checkboxes are disabled if I apply any filter or sort.Is there a way to fix this? or maybe a different way of implementing row selection?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions