You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(webapp,run-engine,core): treat an empty maxDelay as invalid and document the duration grammar
An empty string passed as maxDelay was falsy everywhere it was checked, so
it read as no ceiling at all rather than as the invalid value it is. The
server ceiling now also rejects zero and negative values at startup, and
the duration grammar in the errors and JSDoc lists the hr suffix and
compound forms that the parser has always accepted.
Copy file name to clipboardExpand all lines: .changeset/debounce-max-duration.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,8 @@ Debouncing with a `delay` longer than an hour now works. A hidden server-side li
6
6
7
7
That limit is gone. A debounce key with no `maxDelay` now keeps pushing its run back for as long as triggers keep arriving, which means it never executes while they do. Set `maxDelay` when the work has to happen eventually, and keep `delay` well below it, since the room available to push is the gap between the two.
8
8
9
+
Triggers that set a `maxDelay` no longer than their `delay` are now rejected, as are unparseable `maxDelay` values. Both previously went through and left debouncing doing nothing.
0 commit comments