Hey wassup,
I am changing the initial time when a state is changing ( so it should be re rendernig ) but is not updating to the new time.
The logic behind is, we have an event with start date and end date. So, when the event is not started it shows the timer to the start of the event, and when the event is running it should show the time left until the end of said event.
Also, if you are in another tab the countdown seems to stop, it could be easily fixable checking the time again, but since changing the initial time won't update it's difficult.
Hey wassup,
I am changing the initial time when a state is changing ( so it should be re rendernig ) but is not updating to the new time.
The logic behind is, we have an event with start date and end date. So, when the event is not started it shows the timer to the start of the event, and when the event is running it should show the time left until the end of said event.
Also, if you are in another tab the countdown seems to stop, it could be easily fixable checking the time again, but since changing the initial time won't update it's difficult.