Skip to content
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

Apply enter and enterFrom classes in SSR for Transition component #2059

Merged
merged 2 commits into from
Dec 2, 2022

Conversation

RobinMalfait
Copy link
Member

This only happens on the server when show=true and appear=true. This will guarantee that the class is already set to the correct value before the transition happens.

It worked before if you moved your classes from enterFrom to className because that prop was SSR'd.

Fixes: #2012

This only happens on the server when `show=true` and `appear=true`. This
will guarantee that the `class` is already set to the correct value
before the transition happens.

It worked before if you moved your classes from `enterFrom` to
`className` because that prop was SSR'd.
@vercel
Copy link

vercel bot commented Dec 2, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
headlessui-react ✅ Ready (Inspect) Visit Preview Dec 2, 2022 at 3:00PM (UTC)
headlessui-vue ✅ Ready (Inspect) Visit Preview Dec 2, 2022 at 3:00PM (UTC)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Transition with appear={true} using Next.js
1 participant