title: Blazor Server : Manualy refresh re-rendered UI
body: <p>In the counter example, I add a timer to increment the counter :</p>
  <pre class="lang-cs prettyprint-override"><code>@page &quot;/counter&quot;
  
  &lt;h1&gt;Counter&lt;/h1&gt;
  
  &lt;p&gt;Current count: @currentCount&lt;/p&gt;
  
  &lt;button class=&quot;btn btn-primary&quot; @onclick=&quot;IncrementCount&quot;&gt;Click me&lt;/button&gt;
  
  @code {
      private int currentCount = 0;
  
      protected override void OnInitialized()
      {
          var timer = new System.Timers.Timer();
          timer.Interval = TimeSpan.FromSeconds(1).TotalMilliseconds;
          timer.Elapsed += (s, e) =&gt;
          {
              IncrementCount();
              StateHasChanged();
          };
          timer.Start();
      }
  
      private void IncrementCount()
      {
          currentCount++;
      }
  }
  </code></pre>
  <p>This code work with Blazor WebAssembly, the counter is incremented and the UI display the new value.
  But with Blazor Server, the counter is incremented (checked in debugger) but the UI isn't refresh.</p>
  <p>How refresh manually the UI with Blazor Server?</p>