feat: Implemented filtering and searching
This commit is contained in:
parent
4806f3487a
commit
444d8c4c27
49 changed files with 841 additions and 290 deletions
|
|
@ -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 ?? []]);
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue