Commit 89bfbc7
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 loads1 parent 66dae83 commit 89bfbc7
1 file changed
+227
-213
lines changed
0 commit comments