title: Blazor CascadingParameter vs singleton DependencyInjection
body: <p>I have recently learned that you can provide cascadingValues to the entire project by wrapping the <code>Router</code> component in the provider <a href="https://docs.microsoft.com/en-us/aspnet/core/blazor/components/cascading-values-and-parameters?view=aspnetcore-5.0" rel="noreferrer">Microsoft doc</a>. How is this different to using dependency injection with a singleton pattern? (I know how injection works, I mean performance and architecture wise)</p>
  <p>Which do you think is better to use?</p>