mantine-react-table icon indicating copy to clipboard operation
mantine-react-table copied to clipboard

On row deletion on idx = N, all the rows after N are unmounted/mounted

Open yergom opened this issue 1 year ago • 1 comments

mantine-react-table version

v2.0.0-beta.6

react & react-dom versions

v18

Describe the bug and the steps to reproduce it

More than steps to reproduce it, I want to point at the src of the problem: https://github.com/KevinVandy/mantine-react-table/blob/3bfa3b0acd1b893a2c97950f92551688645bd9d1/packages/mantine-react-table/src/components/body/MRT_TableBody.tsx#L192

Making the key dependent on the index causes a full re-render of all the rows after an insertion/deletion.

Minimal, Reproducible Example - (Optional, but Recommended)

not provided

Screenshots or Videos (Optional)

No response

Do you intend to try to help solve this bug with your own PR?

None

Terms

  • [X] I understand that if my bug cannot be reliably reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

yergom avatar Sep 04 '24 10:09 yergom

Hi, thanks for this, any suggestions on how to fix it?

alessandrojcm avatar Nov 04 '24 17:11 alessandrojcm