Skip to content

Commit

Permalink
add comment to StaticComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
msynk committed Sep 14, 2024
1 parent ea1b479 commit c85f9e4
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
namespace Boilerplate.Client.Core.Components;
using static System.Net.WebRequestMethods;

namespace Boilerplate.Client.Core.Components;

/// <summary>
/// To prevent rendering recursion into a particular subtree use this component as base class.
/// <see href="https://learn.microsoft.com/en-us/aspnet/core/blazor/performance?view=aspnetcore-8.0#avoid-unnecessary-rendering-of-component-subtrees"/>
/// </summary>
public class StaticComponent: ComponentBase
{
protected override bool ShouldRender() => false;
Expand Down

0 comments on commit c85f9e4

Please sign in to comment.