openedx / paragon

💎 An accessible, theme-ready design system built for learning applications and Open edX.

Home Page:https://paragon-openedx.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`DataTable` console errors during local development

viktorrusakov opened this issue · comments

When opening any component page on the docs site during local development it floods console with following error messages:
image

This is caused by #2581, where props spreading was added to some of the subcomponents of DataTable (likely to be able to pass data-testid in tests to find elements with react-testing-library in tests). However, it was not considered that react-table internally passes a lot of redundant props to our components which now get spread to the DOM elements and since DataTable is used on every component page to show its Usage Insights we have console errors everywhere.

Tasks