So I was experimenting with Blazor and I'd like to understand the difference between these two.
<p @onclick="OnClickCallback">Click me normal</p>
<p @onclick="async () => await OnClickCallback()">Click me lambda</p>
@code {
private async Task OnClickCallback()
{
await Task.Delay(500);
}
}
What is the difference between these two approaches. What happens behind the scenes. I've found some issues with EF Core (which is a whole other topic) where the lambda approach did not throw an exception, and the normal did.