pqina / tick

⏱ A counter component to render different countdown styles with
MIT License
83 stars 8 forks source link

Fixed bug with incorrect countdown being shown. #8

Closed ryno1234 closed 1 year ago

ryno1234 commented 1 year ago

Occurs when a user types in the URL of a page that has a flip on it and that URL is one that has already been visited before. Chrome (and possibly other) browsers pre-render the page as part of their URL suggestion logic. This background pre-rendering would cause flip to immediately sleep() before calculating tickExpectedTime.

Fixes https://github.com/pqina/flip/issues/50