-
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
Extra rerender on hover item #2782
Comments
This happens as a result of There might be some useMemo-ish stuff we could do here but I'm not certain that's possible in this case. @RobinMalfait Any thoughts here? |
Hey! Even with The problem is unfortunately also way trickier than it looks. If you used the keyboard to go to I also wouldn't recommend to use a lot of options in the Instead, I would recommend to use the You can use this new feature when using the Hope this helps! |
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
v1.7.16
What browser are you using?
Chrome, Safari, or N/A
Describe your issue
I have realized that for large data in the
ListBox
andAutocomplete
components, additional renders occur on hover over items, which significantly impacts performance. This can be applied to each item individually because hover has no effect on the active and selected states.The text was updated successfully, but these errors were encountered: