Skip to content

Conversation

@EdwardEB
Copy link
Contributor

@EdwardEB EdwardEB commented Mar 6, 2025

Previously, table row component would mount even if detail row is not expanded. This can cause the DOM to bloat rapidly.
A grid with 100 rows and a detail panel would create 100 extra DOM nodes.

Also fixed all detail panel stories.

@vercel
Copy link

vercel bot commented Mar 6, 2025

@EdwardEB is attempting to deploy a commit to the Kevin Vandy OSS Team on Vercel.

A member of the Team first needs to authorize it.

@rommelmamedov
Copy link

Currently, I'm using this setup to solve the issue:

Basically, passing this prop to useMantineReactTable:

renderDetailPanel: detailPanel ? ({ row }) => (row.getIsExpanded() ? detailPanel?.(row) : null) : undefined,

@KevinVandy
Copy link
Owner

This was done on purpose to avoid issues with both virtualization and striped row css

@EdwardEB EdwardEB closed this Mar 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants