DataTable: Warning message related to props
displayed
#7470
Labels
Type: Bug
Issue contains a defect related to a specific component.
props
displayed
#7470
Describe the bug
To set the default props of the
DataTable
component, I created a component calledStyledDataTable
and am using it in my project. I'm not sure when, but a warning message that was clearly invisible appears in the console.I discovered it after updating to Vite 6, but the phenomenon is the same even after downgrading to version 5.4.11.
This is a fact I discovered while writing code to reproduce the bug.
This was caused by code injecting props from
<DataTable {...props}>
.I created the same
StyledDataTable
component in the bug reproduction code, but I couldn't see the warning message in the StackBlitz console.Reproducer
https://stackblitz.com/edit/vitejs-vite-xxihnm?file=src%2FStyledDataTable.tsx
System Information
Steps to reproduce the behavior
It should happen just by loading the project.
Expected behavior
Warning messages should not appear in the console.
The text was updated successfully, but these errors were encountered: