Skip to content

Commit 5f6fb30

Browse files
committedMay 18, 2023
fix: address erratic events in nextJS production
Fixes #902
1 parent 46e31de commit 5f6fb30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/urx/pipe.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,8 @@ export function skip<T>(times: number): Operator<T> {
252252
* ```
253253
*/
254254
export function throttleTime<T>(interval: number): Operator<T> {
255-
let currentValue: T | undefined
256-
let timeout: any
255+
let currentValue: T | undefined | null = null
256+
let timeout: ReturnType<typeof setTimeout> | undefined
257257

258258
return (done) => (value) => {
259259
currentValue = value

0 commit comments

Comments
 (0)
Please sign in to comment.