Closed
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.