(callback, ...rest)
| 4 | * Like `onStart`, but defers execution, useful for updating states. |
| 5 | */ |
| 6 | export const onStartDeferred: typeof onStart = (callback, ...rest) => { |
| 7 | return onStart((...args) => { |
| 8 | setTimeout(() => { |
| 9 | callback(...args) |
| 10 | }, 6) |
| 11 | }, ...rest) |
| 12 | } |
| 13 | |
| 14 | /** |
| 15 | * Like `onSuccess`, but defers execution, useful for updating states. |
no test coverage detected