vydimitrov / react-countdown-circle-timer

Lightweight React/React Native countdown timer component with color and progress animation based on SVG

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Problem when seconds count down be 0

dash7ou opened this issue · comments

Error msg:
TypeError: Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a Symbol.iterator method.

Error possion:
54 | startAt,
55 | onComplete:
56 | typeof onComplete === 'function'

57 | ? (...rest) => {
| ^ 58 | // REFACTOR in next major release so onComplete matches expected return value as useElapsedTime
59 | const [shouldRepeat = false, delay = 0] = onComplete(...rest) || []

Lol, I have upgraded the version to the last one and its working fine :P