We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c386bf8 commit e2f88a6Copy full SHA for e2f88a6
packages/shared/widget-plugin-hooks/src/useDebounceWithStatus.ts
@@ -9,7 +9,7 @@ export const useDebounceWithStatus = <F extends (...args: any[]) => any>(
9
isExecuting: boolean
10
): [F] => {
11
const timeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);
12
- const pendingActions = useRef<Parameters<F>>();
+ const pendingActions = useRef<Parameters<F>>(undefined);
13
const canRun = useRef(isExecuting);
14
15
useEffect(() => {
0 commit comments