-
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
Headless UI transitions and dialog not working on react 18 #997
Comments
Can you create a codesandbox to make it easier to check? |
It works in codesandbox with react 18 so it might be something in the boilerplate i've shared with you |
It seems to be working in a production build, but not in development with next.js. With a more in-depth knowledge it might be an easy fix, but I'm not familiar with the headless UI codebase. Let me know if I can help in any way. |
@lveillard any way you have fixed this? I am having the same issue |
@lveillard It not works when Concurrent Mode is enabled which using |
Still broken but it does work in production btw |
It's broken in development because of Strict Effects mode: |
Hey! Thank you for your bug report! We haven't worked on React 18 support yet since this also introduces breaking changes. Will close this in favor of a tracking issue for React 18: #681 |
Try to disable strict mode, I had the same issue too. But I resolved it by disabling the react strict mode |
Feel free to test the insiders version also which works already with react strict set to true. |
Hello all!
Just FYI, headlessUI transitions and dialogs don't work with react 18 beta:
A quick way to check it.
clone
https://github.com/ixartz/Next-js-Boilerplate
yarn add @headlessui/react@next
Add this somewhere in the index
The text was updated successfully, but these errors were encountered: