First of all, I think blazor occasionally one of the biggest problems is the breakpoint, solve the problem of this very vexed, can't debug, can only be found from the stack information inside the bottom where I went wrong,
Less good.net standar API, NuGet standar based on library can also not much,
And navigation, in the current page to navigate to the current page is not trigger OnInitializedAsync, equivalent to js pushState (), but there is no matching function
[Inject]
Private NavigationManager Navigation {get; The set; }
Private asycn Task QueryAsycn ()
{
/* if I is the current page/Demo
* so I want to filter data, navigate to/Demo? Name=123, the address will change, but not OnInitializedAsync
* don't know is I didn't keep up with the idea of or should have been like this
*/
Navigation. NavigateTo ("/Demo? Name=123 ");
//if you navigate to another page is in line with expectations, such as
Navigation. NavigateTo ("/Welcome? Name=123 ");
//so I currently processing way is navigateTo, continue to query data update UI
Source=await LoadDataAsync ();
}
RenderFragment code way to build good trouble, I development way is
Welcome. Razor
Cs
Welcome. The razor.
//file Welcome. Razor. Cs
Public partial class Webcome {}
After thinking of good maintenance, see clearly, more pure and clean, but had to is added on the razor code
//on the razor files build RenderFragment is very simple, var rf=@ & lt; Tag>
Private string NewTag {get; The set; }
Private RenderFragment DropdownRender (RenderFragment originNode)
{
RenderFragment customDropdownRender=
@ & lt; Template>