-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem: React Flip Clock is not updating correctly in inactive tab #17
Comments
could you provide a code example? |
Looks not perfect, but with force render timer works better due browser tabs switch: import { useEffect, useState } from "react"; export default function CustomFlipClockCountdown({ className, onComplete, to, labels }) {
} |
@Kostanios |
Ah. No worries. I've just understood your issue |
The component gets derailed if you switch to another tab, the problem is solved if you perform force render after visibilitychange event. But it would be cool to add something like this out of the box
The text was updated successfully, but these errors were encountered: