Closed sapostol closed 1 week ago
Hi @sapostol! I have not been able to reproduce this issue.
The console errors you're encountering are likely due to how you're using useEffect in your code. It seems the TdsTableBodyRow
components are trying to access properties like tableId
and multiselect
before the parent TdsTable
is fully initialized. This timing issue is probably not related to the design system itself but rather to the component lifecycle in your implementation.
Requirements before reporting
Package versions
"@scania/tegel-react": "1.11.0"
Browser
Chrome
Framework
React
Version
React 18.2.0
Reproduction steps
Added a TdsTable component Loaded the page which contains this table Opened console Saw 2 new errors:
Code example
Screenshots
Expected behaviour
We should not see any console errors in a page in which the TdsTable component is loaded.
Console errors
Contact information
simona.apostol@scania.com