You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a significant amount of code on the page (I will call it Grouping.razor). I would like to connect it to the state. Reading the documentation I see that is done by a call to the static 'Get' that returns a RenderFragment. But the samples show the RenderFragment on the page. This seems like a Catch-22. Say my page looks like:
<p> This is a test </p>
and I have code behind that includes the Props like
[Parameter]
public GroupingProps Props { get; set; }
So if I was to extend this to my page I would do something like
<p> This is a test </p>
@GroupingCmp
@code {
RenderFragment GroupingCmp = GroupingConnect.Get();
}
I have tried calling 'Get' in OnInitializedAsync and just ignoring the return RenderFragment but the Props parameter is always null. How do I connect the page to the state?
The text was updated successfully, but these errors were encountered:
I have a significant amount of code on the page (I will call it Grouping.razor). I would like to connect it to the state. Reading the documentation I see that is done by a call to the static 'Get' that returns a RenderFragment. But the samples show the RenderFragment on the page. This seems like a Catch-22. Say my page looks like:
<p> This is a test </p>
and I have code behind that includes the Props like
From the documentation I see lines like
So if I was to extend this to my page I would do something like
I have tried calling 'Get' in OnInitializedAsync and just ignoring the return RenderFragment but the Props parameter is always null. How do I connect the page to the state?
The text was updated successfully, but these errors were encountered: