Skip to content

Commit

Permalink
RX State all new State handling
Browse files Browse the repository at this point in the history
Add missing file
  • Loading branch information
Bernhard Straub committed Mar 24, 2024
1 parent b305fe3 commit 6c2f4b3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions RxMudBlazorLightTestBase/Debug/DisplayRenderCycle.razor
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

<MudStack AlignItems=@AlignItems.Start Row=@true>
<MudText Typo="Typo.h3" GutterBottom="true">@_renderCycles</MudText>
@ChildContent
</MudStack>

@code {
[Parameter]
public required RenderFragment ChildContent { get; init; }

private int _renderCycles = 0;

protected override void OnAfterRender(bool firstRender)
{
_renderCycles++;
base.OnAfterRender(firstRender);
}
}

0 comments on commit 6c2f4b3

Please sign in to comment.