diff --git a/packages/@headlessui-react/CHANGELOG.md b/packages/@headlessui-react/CHANGELOG.md index b470bb7c61..c36f77f350 100644 --- a/packages/@headlessui-react/CHANGELOG.md +++ b/packages/@headlessui-react/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Ensure `Transition` component state doesn't change when it becomes hidden ([#3372](/~https://github.com/tailwindlabs/headlessui/pull/3372)) - Fix closing components using the `transition` prop, and after scrolling the page ([#3407](/~https://github.com/tailwindlabs/headlessui/pull/3407)) +- Ensure all client components are marked correctly to avoid a crash with React 19 and Turbopack ([#3429](/~https://github.com/tailwindlabs/headlessui/pull/3429)) ## [2.1.2] - 2024-07-05 diff --git a/packages/@headlessui-react/src/internal/close-provider.tsx b/packages/@headlessui-react/src/internal/close-provider.tsx index 3d12524808..309a2bd831 100644 --- a/packages/@headlessui-react/src/internal/close-provider.tsx +++ b/packages/@headlessui-react/src/internal/close-provider.tsx @@ -1,3 +1,5 @@ +'use client' + import React, { createContext, useContext } from 'react' let CloseContext = createContext(() => {})