'How to re-render the react-table when selectedRowIds is changed

I would want to change the select by clicking the button.

At this moment the table cannt rereder when the selectedRowIds is changed.

In the react-table behaviors ,it seems that the table is rerender when data is changed

How should i do?

I have create a sample

https://codesandbox.io/s/tannerlinsley-react-table-row-selection-controlled-forked-0oq29?file=/src/App.js



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source