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:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user