|
|
|
@@ -118,7 +118,7 @@ Returns the timeout id - but you still need to cancel it through stopTimer! |
|
|
|
*/ |
|
|
|
function startTimer(config) { |
|
|
|
const timeout = setTimeout(() => { |
|
|
|
const result = config.func(state, config); |
|
|
|
const result = config.func(config); |
|
|
|
refresh(); |
|
|
|
|
|
|
|
// the timer may have terminated itself! |
|
|
|
|