-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
✔️ Resolution: By DesignResolved because the behavior in this issue is the intended design.Resolved because the behavior in this issue is the intended design.area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Components
Description
Why Blazor calls property get every time a user interact with some component?
For example:
@FullName
<button onclick="@(() => Console.Write(""))">button</button>
@functions{
public string GivenNames { get; set; }
public string FamilyName { get; set; }
public string FullName => $"{GivenNames} {FamilyName}";
}
When I hit the button, FullName is recalculated again, why does this happen? The button above doesn't interact with anything.
This can lead to a huge performance problem.
Metadata
Metadata
Assignees
Labels
✔️ Resolution: By DesignResolved because the behavior in this issue is the intended design.Resolved because the behavior in this issue is the intended design.area-blazorIncludes: Blazor, Razor ComponentsIncludes: Blazor, Razor Components