[Bug]: useLayoutEffect warnings from DataTable in SSR usage #14936
Labels
component: data-table
package: @carbon/react
@carbon/react
severity: 4
https://ibm.biz/carbon-severity
type: bug 🐛
Package
@carbon/react
Browser
No response
Package version
1.40
React version
17
Description
Our console log is blowing up with these exceptions from DataTable nowadays (just upgraded from 1.20 to 1.40):
Reproduction/example
I think you just need to use DataTable with some SSR framework like Remix or Next.js
Steps to reproduce
Pretty sure all you need to do is be using SSR with DataTable, this appears to be a generic useLayoutEffect drawback. You can read about solutions here:
https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85
Suggested Severity
Severity 4 = Unrelated to a user task, has a workaround or does not need a workaround.
Application/PAL
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: