Daniel Imms
bad7e329df
Add @typescript-eslint/prefer-nullish-coalescing eslint rule
2026-01-31 08:43:05 -08:00
Daniel Imms
98e234992b
Prefer performance.now() over Date.now()
...
performance.now() is faster than Date.now() as there's no need to
consult the system clock. The more important part of this is that
performance.now() is monotonic and is guaranteed to never to backwards.
2025-11-23 08:32:35 -08:00
Samuel Sampson
42e0fcda29
Fix lint error due to private variable
2021-08-17 22:26:14 +00:00
Samuel Sampson
e778df672a
Don't clear timeouts in TimeBasedDebouncer if they've already been executed.
2021-08-17 22:20:04 +00:00
Samuel Sampson
ae58302dfa
Allow render debounce interval to be configured at construction time in TimeBasedDebouncer
2021-08-17 22:09:51 +00:00
Samuel Sampson
9f24cf7e72
Cancel queued refreshes in TimeBasedDebouncer on dispose
2021-08-17 21:28:58 +00:00
Samuel Sampson
f1849cafaf
Introduce IRenderDebouncer interface, unifying RenderDebouncer and TimeBasedDebouncer types
2021-08-17 20:50:47 +00:00
Samuel Sampson
732927b0e2
Add back IDisposable implementation in TimeBasedDebouncer for the ease of interoperability with RenderDebouncer
2021-07-29 20:20:02 +00:00
Samuel Sampson
4a9ecb33bd
Remove unneeded dispose method from TimeBasedDebouncer
2021-07-29 19:58:59 +00:00
Samuel Sampson
e82f475c9b
Separate the regular render debouncer from a Time-Based debouncer to be used to update Screen Readers
2021-07-29 19:57:51 +00:00