Select box value in a react table does not refresh

Hello everyone! Could you please take a look into the tiny sandbox project? https://codesandbox.io/p/sandbox/festive-nova-s58h2v I have a simple editable react table, each row contains a "raw" data and the same data as a select box value. When I delete a row, the table is rerendered correctly, the "raw" data is displayed correctly, but the selected value in the select boxes stay unchanged. How can I sync up the value in the select box? Thanks in advance!

Mar 28, 2025 - 13:12
 0
Select box value in a react table does not refresh

Hello everyone!
Could you please take a look into the tiny sandbox project?

https://codesandbox.io/p/sandbox/festive-nova-s58h2v

I have a simple editable react table, each row contains a "raw" data and the same data as a select box value. When I delete a row, the table is rerendered correctly, the "raw" data is displayed correctly, but the selected value in the select boxes stay unchanged.
How can I sync up the value in the select box?

Thanks in advance!