feat: Implemented filtering and searching

This commit is contained in:
Simeon Radivoev 2026-04-12 22:19:24 +03:00
parent 4806f3487a
commit 444d8c4c27
Signed by: simeonradivoev
GPG key ID: 7611A451D2A5D37A
49 changed files with 841 additions and 290 deletions

View file

@ -191,7 +191,7 @@ export function useShortcutContext ()
return { shortcuts: array };
}
export function useShortcuts (focusKey: string, build: () => Shortcut[], ...deps: DependencyList)
export function useShortcuts (focusKey: string, build: () => Shortcut[], deps?: DependencyList)
{
useEffect(() =>
{
@ -211,6 +211,6 @@ export function useShortcuts (focusKey: string, build: () => Shortcut[], ...deps
markDirtyThrottled();
};
}, [...deps, focusKey]);
}, [focusKey, ...deps ?? []]);
}