Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: invalid spreading of keys into table rows everywhere #8551

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

thomasheartman
Copy link
Contributor

@thomasheartman thomasheartman commented Oct 28, 2024

This commit fixes invalid prop spreading warnings in all the table rows I
could find through a quick search in the code base.

The issue is that you can't spread the "key" prop into a component. It must be an explicit prop.

The process is the same everywhere:

  1. Instead of spreading row.getRowProps() into the component, we extract and split it: const {key, ...rowProps} = row.getRowProps().
  2. Do the same thing for cellProps.

This commit fixes MUI prop spreading warnings in all the table rows I
could find through a quick search in the code base.
Copy link

vercel bot commented Oct 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 28, 2024 0:37am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview Oct 28, 2024 0:37am

Copy link
Contributor

github-actions bot commented Oct 28, 2024

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

Copy link
Contributor

@kwasniew kwasniew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@thomasheartman thomasheartman merged commit 622998c into main Oct 28, 2024
11 checks passed
@thomasheartman thomasheartman deleted the fix/key-prop-warnings branch October 28, 2024 12:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants