Skip to content

Commit 015ea3c

Browse files
committed
ref(replay): Avoid duplicate debounce timers
1 parent b83e7e1 commit 015ea3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/replay/src/util/debounce.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export function debounce(func: CallbackFunction, wait: number, options?: Debounc
5757
}
5858
timerId = setTimeout(invokeFunc, wait);
5959

60-
if (maxWait && maxTimerId === undefined) {
60+
if (maxWait && maxTimerId === undefined && maxWait !== wait) {
6161
maxTimerId = setTimeout(invokeFunc, maxWait);
6262
}
6363

0 commit comments

Comments
 (0)