File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ export function debounce<T>({
101
101
$timeoutId . reset ( timerFx . done ) ;
102
102
103
103
// It's ok - nothing will ever start unless source is triggered
104
- const $payload = createStore < T [ ] > ( [ ] , { serialize : 'ignore' } ) . on (
104
+ const $payload = createStore < T [ ] > ( [ ] , { serialize : 'ignore' , skipVoid : false } ) . on (
105
105
source ,
106
106
( _ , payload ) => [ payload ] ,
107
107
) ;
Original file line number Diff line number Diff line change @@ -42,10 +42,10 @@ export function throttle<T>({
42
42
} ) ;
43
43
44
44
// It's ok - nothing will ever start unless source is triggered
45
- const $payload = createStore < T > ( null as unknown as T , { serialize : 'ignore' } ) . on (
46
- source ,
47
- ( _ , payload ) => payload ,
48
- ) ;
45
+ const $payload = createStore < T > ( null as unknown as T , {
46
+ serialize : 'ignore' ,
47
+ skipVoid : false ,
48
+ } ) . on ( source , ( _ , payload ) => payload ) ;
49
49
50
50
const triggerTick = createEvent < T > ( ) ;
51
51
You can’t perform that action at this time.
0 commit comments