You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unnecessary re-renders by just hovering over a CommandItem. #377
Interesting.. Vercel seems to be doing a better job with this. Probably due to usecmdk hook.
Screen.Recording.2025-09-07.at.2.21.52.PM.mov
Update
The problem is that hovering and keyboard navigation both trigger the same global state update as if the user actually selected the item, causing "unnecessary" (might depends on your use case) re-renders across the entire component tree.
Activity
FarooqAlaulddin commentedon Sep 7, 2025
Interesting.. Vercel seems to be doing a better job with this. Probably due to usecmdk hook.
Screen.Recording.2025-09-07.at.2.21.52.PM.mov
Update
The problem is that hovering and keyboard navigation both trigger the same global state update as if the user actually selected the item, causing "unnecessary" (might depends on your use case) re-renders across the entire component tree.
Current behavior
Video
Fix
Modify the Item component to separate visual hover state from logical selection state:
Now..
Video