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

Improve performance of internal `useInertOthers` hook #3181

Closed RobinMalfait closed 4 months ago

RobinMalfait commented 4 months ago

This PR improves the performance of the internal useInertOthers hook, which will be visible when a lot of elements are rendered on the page.

This gets rid of the default function arguments for allowed and disallowed and does an internal null check instead.

vercel[bot] commented 4 months 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 May 7, 2024 5:17pm
headlessui-vue ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 7, 2024 5:17pm