useRowSelect does not select more than one row #2732
Answered
by
andreashouben
andreashouben
asked this question in
General
-
Hi there, React beginner here. I was trying to build a simple selectable table using the 'useRowSelect' hook. The table is rendered, but after I selected the first row, the selectedRows state doesn't change anymore when I select more rows. https://codesandbox.io/s/focused-diffie-86bde?file=/src/App.js Any advice? |
Beta Was this translation helpful? Give feedback.
Answered by
andreashouben
Sep 19, 2020
Replies: 1 comment
-
After comparing the demo Sandbox line by line with my sandbox I noticed that the demo sandbox is not running in React.Strict Mode. This quickly leads to the following issues: |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
andreashouben
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
After comparing the demo Sandbox line by line with my sandbox I noticed that the demo sandbox is not running in React.Strict Mode. This quickly leads to the following issues:
#2120
and
#2170