Skip to content

Commit b1bf535

Browse files
SkyZeroZxleonsenft
authored andcommitted
fix(forms): Resolves debounce promise on abort in debounceForDuration
Ensures the promise returned by the debouncer resolves when aborted, preventing potential hangs for awaiting consumers. Fixes #66646
1 parent 26d1215 commit b1bf535

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/forms/signals/src/api/rules/debounce.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ function debounceForDuration(durationInMilliseconds: number): Debouncer<unknown>
4646

4747
const onAbort = () => {
4848
clearTimeout(timeoutId);
49+
resolve();
4950
};
5051

5152
timeoutId = setTimeout(() => {

0 commit comments

Comments
 (0)