-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Tab Component, Hydration error on React 18 #1375
Comments
Hey! Thank you for your bug report! I don't know if there is much we can do here. We are using React 18's
Fixing that might probably solve the issue. Here is an example of our playground where we don't have hydration issues and this behaviour works as expected: https://headlessui-react-fglvz9cc1-tailwindlabs.vercel.app/tabs/tabs-with-pure-tailwind |
The provided example also has this problem and it shows the hydration error in the console. |
This also happens with react@17.0.2, getting the following warning in the browser console:
|
@RobinMalfait I dont think this issue is closed then, or am I missing something? |
The latest release does fix it, indeed. Thanks! |
Hi! I have a similar issue with Popover componente. React 18.1.0 with Next 12.1.6 and @headlessui/react 1.6.2 |
I also continue to see this issue with React 18.2.0, Remix 1.6.0, and @headlessui/react 1.6.5 |
I am getting rehydration error, pls help |
If anyone still experiences an issue with this, please open a new issue with a minimal reproduction repo attached. Sadly, it's impossible to help without info! |
What package within Headless UI are you using?
@headlessui/react
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.The text was updated successfully, but these errors were encountered: