title: Blazor component : refresh parent when model is updated from child component
body: <p>I'm using Server-side Blazor components in ASP.NET Core 3 preview 4.</p>
  
  <p>I have a parent component, and child components, using the same shared model, like this :</p>
  
  <p>Model :</p>
  
  <pre><code>public class CountModel
  {
      public int Count { get; set; }
  
      public void Increment()
      {
          Count++;
      }
  }
  </code></pre>
  
  <p>Parent component :</p>
  
  <pre><code>@page "/count"
  
  &lt;CascadingValue Value="currentCount"&gt;
      &lt;h1&gt;Count parent&lt;/h1&gt;
  
      &lt;p&gt;Current count is : @currentCount.Count&lt;/p&gt;
  
      &lt;button class="btn btn-primary" onclick="@currentCount.Increment"&gt;+1 from parent&lt;/button&gt;
  
      &lt;CountChild&gt;&lt;/CountChild&gt;
  &lt;/CascadingValue&gt;
  
  @functions {
      private CountModel currentCount = new CountModel();
  }
  </code></pre>
  
  <p>Child component :</p>
  
  <pre><code>&lt;h1&gt;Count child&lt;/h1&gt;
  
  &lt;p&gt;Current count is : @currentCount.Count&lt;/p&gt;
  
  &lt;button class="btn btn-primary" onclick="@currentCount.Increment"&gt;+1 from child&lt;/button&gt;
  
  
  @functions {
      [CascadingParameter]
      private CountModel currentCount { get; set; }
  }
  </code></pre>
  
  <p>It's the same instance of the model used for the parent and the child.
  When the model is updated from the parent, both display the correct incremented value.
  When it's updated from the child, only the child display the correct value. </p>
  
  <p>How can I force the parent component to be refreshed when it is updated from the child ?</p>
  
  <p>Note, here I have a function to update the model, but I would like the solution to work when data is bound to an input.</p>