tailwindlabs / headlessui

Completely unstyled, fully accessible UI components, designed to integrate beautifully with Tailwind CSS.
https://headlessui.com
MIT License
25.81k stars 1.07k forks source link

Add client hint to close provider #3429

Closed philipp-spiess closed 1 month ago

philipp-spiess commented 1 month ago

This PR adds a missing client boundary in the close provider file that was causing crashes when used with Turbopack as reported in the Next.js repo: https://github.com/vercel/next.js/issues/68205

Test plan

Thanks to @richardasymmetric fantastic repro I could check out the example repo and link a tarball build of the updated @headlessui/react package to validate that this is enough to resolve the issue. After this change, next dev and next dev --turbo work in the same way.

vercel[bot] commented 1 month ago

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

Name Status Preview Comments Updated (UTC)
headlessui-react ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 19, 2024 11:32am
headlessui-vue ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 19, 2024 11:32am