Skip to content

Commit 89bfbc7

Browse files
committed
docs(search): fix arrow keys skipping multiple items
Refactor useSearch to true singleton pattern. Previously, each component calling useSearch() registered its own useToggleScope hotkeys, causing ~7 handlers to fire per keypress. - Move computeds, watchers, and useToggleScope to module level - Simplify useSearch() to just return singleton interface - Hotkeys now register exactly once when module loads
1 parent 66dae83 commit 89bfbc7

File tree

1 file changed

+227
-213
lines changed

1 file changed

+227
-213
lines changed

0 commit comments

Comments
 (0)