-
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
Transition issue with React Suspense #2400
Comments
@RobinMalfait any insights? |
Leaving some notes for myself for later research:
|
Hey! We made some changes in #2633 which basically uses a localized version of This will be available via our insiders build in a few minutes — which you can use to try out the changes/fixes:
|
Ah looks like there's some regression with transitions inside dialogs that we have to look at. I'm gonna re-open this until we have a chance to figure that out. |
Okay, so I figured out a more targeted "only when using React v18" fix for this in #2663. Should be fixed for real now. 😄 This will be available via our insiders build in a few minutes — which you can use to try out the changes/fixes:
|
Think this issue still happens in some situations— have one case where the transition seems to hydrate correctly within a suspense and one where it does not, in the same app. Trying to figure out why |
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
"@headlessui/react": "^1.7.13"
What browser are you using?
Chrome
Reproduction URL
Github repro: https://github.com/jorisre/headlessui-suspense-issue
Describe your issue
When using two
<Transition />
components through<Portal />
(or other) in combination of React<Suspense />
we get a React rendering issue (see screen below).I tried to fix it directly inside the @headlessui/react without success. It seems the issue is related to
useServerHandoffComplete
andenv.ts
. If someone have a hint that helps me to fix it ✌🏻Steps to reproduce:
npm install
npm run dev
The text was updated successfully, but these errors were encountered: