StateHasChanged not working in timers.
Hello, am trying to make a countdown timer to a specific date, it all works but for some reason even though I am calling
StateHasChanged
, it doesn't update, it only updates when I refresh the page.
I also noticed that the dispose method (in the IDisposable interface) is called immediately after the page refreshes and the timer gets disposed instantly so it never has any time to run.
.NET Version: 8.0.302
1 Reply
What rendermode is the component being rendered in?