[Bug]: Tab Component, Hydration error on React 18
See original GitHub issueWhat package within Headless UI are you using?
What version of that package are you using?
v1.60
What browser are you using?
Safari
Reproduction URL
https://codesandbox.io/s/cool-yonath-qeouqc?file=/pages/index.js
Describe your issue
Error: Hydration failed because the initial UI does not match what was rendered on the server.
error message when using the headlessui Tab component.
Issue Analytics
- State:
- Created a year ago
- Comments:10
Top Results From Across the Web
React 18: Hydration failed because the initial UI does not ...
Hydration failed when the children was dangerously set inner HTML . Got rid of the component, and it works fine now. (I could...
Read more >react 18 hydration error | The AI Search Engine You Control
Error : Hydration failed because the initial UI does not match what was rendered on the server. error message when using the headlessui...
Read more >Strict Mode - React
StrictMode currently helps with: Identifying components with unsafe lifecycles; Warning about legacy string ref API usage; Warning about deprecated findDOMNode ...
Read more >Using Ultra, the new React web framework - LogRocket Blog
Wrapping React Suspense around a component will enable selective hydration. Selective hydration will start hydrating HTML before JavaScript code ...
Read more >react-hydration-error - Next.js
In general this issue is caused by using a specific library or application code that is relying on something that could differ between...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The latest release does fix it, indeed. Thanks!
The provided example also has this problem and it shows the hydration error in the console. There is a problem with id created with useId hook which cause hydration error with nextjs and react 18.