Replies: 3 comments 12 replies
|
quick example to maybe clear any confusion , i get sent something from the server at time x , i focus on the window ten seconds later |
|
Hey @loshya, can you provide a small demo where you reproduce the issue so I can take a look at it? Just by reading your comment I am not able to tell you what the problem is. Otherwise, your approach seems correct, when the component is mounted, you check how much time elapsed, then from the total time you remove the elapsed time and feed that to the component as |
|
I have this same issue. Countdown starts only when tab is active. It should start tho even if I am not in the tab right now.. Anyone has a fix for this? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
i noticed an issue that the timer only starts when the window is focused so i tried to overcome this by using a date object from when the component was mounted vs the current time (which essentially would give me the true elapsed time. but the component always seems to rely on the remainingtime even when i try to change the key
any idea how to resolve this ?
All reactions