chore(react/ribbon): working execute search button

This commit is contained in:
Elian Doran
2025-08-24 15:48:53 +03:00
parent c1b30db3d1
commit 759398d804
17 changed files with 104 additions and 68 deletions

View File

@@ -109,7 +109,7 @@ export function useTriliumEventBeta<T extends EventNames>(eventName: T | T[], ha
}
}
export function useSpacedUpdate(callback: () => Promise<void>, interval = 1000) {
export function useSpacedUpdate(callback: () => void | Promise<void>, interval = 1000) {
const callbackRef = useRef(callback);
const spacedUpdateRef = useRef<SpacedUpdate>();