modify method for determining Runtime in SiteRouter as ComponentTagHelper "param-" appears to only work on Blazor Server - not on WebAssembly

This commit is contained in:
Shaun Walker
2021-09-21 12:48:15 -04:00
parent 8d37444755
commit 5071cf4752
3 changed files with 12 additions and 9 deletions

View File

@ -22,6 +22,9 @@
[Parameter]
public string Runtime { get; set; }
[Parameter]
public string RenderMode { get; set; }
[CascadingParameter]
PageState PageState { get; set; }
@ -52,7 +55,7 @@
protected override async Task OnParametersSetAsync()
{
if (PageState == null)
if (PageState == null && !string.IsNullOrEmpty(Runtime))
{
await Refresh();
}