[Bug ]: Tabs component is not rendering correctly in Remix.run (SSR) #13702
Labels
role: dev 🤖
severity: 3
https://ibm.biz/carbon-severity
status: waiting for author's response 💬
type: bug 🐛
Package
@carbon/react
Browser
Chrome
Package version
112.0.5615.138 (Official Build) (64-bit)
React version
18.2.0
Description
I have this error when i try to add Tabs component to remix.run page
Uncaught Error: Hydration failed because the initial UI does not match what was rendered on the server.
Here is how the tabs are rendered:
Tested example:
``
The problem is caused by
@carbon/feature-flags
module which returns different results in client and the server.This line returns
false
the first time it is executed on client (web) even if the flagenable-v11-release
is enabled.workaround
A workarround i found for now is to fork the @carbon/feature-flags package, fix the bug and and reference my local fork in package.json
Reproduction/example
https://stackblitz.com/edit/remix-carbon-dmnxpk?file=app/entry.server.tsx
Steps to reproduce
https://stackblitz.com/edit/remix-carbon-dmnxpk?file=app/entry.server.tsx
Suggested Severity
Severity 3 = User can complete task, and/or has a workaround within the user experience of a given component.
Application/PAL
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: