Open
Description
Describe the bug
Combobox.Item causes a whole combobox re-render when the mouse hovers above it
If the list is big it'll cause quite a significant drop in the FPS
This is probably caused by this event handler causing an unintended state update causing React to re-render on mouse hover:
How to reproduce
I've reproduced the bug in this repo:
https://codesandbox.io/p/devbox/divine-resonance-gzdwvn
Link to direct demo:
- Open the Combobox
- Turn on react-scan
- Hover on any item inside
Link to reproduction
https://codesandbox.io/p/devbox/divine-resonance-gzdwvn
Additional information
Metadata
Metadata
Assignees
Labels
No labels