Skip to content

Commit e2f88a6

Browse files
chore(widget-plugin-hooks): fix useRef without arguments
1 parent c386bf8 commit e2f88a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/shared/widget-plugin-hooks/src/useDebounceWithStatus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const useDebounceWithStatus = <F extends (...args: any[]) => any>(
99
isExecuting: boolean
1010
): [F] => {
1111
const timeoutRef = useRef<ReturnType<typeof setTimeout> | null>(null);
12-
const pendingActions = useRef<Parameters<F>>();
12+
const pendingActions = useRef<Parameters<F>>(undefined);
1313
const canRun = useRef(isExecuting);
1414

1515
useEffect(() => {

0 commit comments

Comments
 (0)