Blazorise icon indicating copy to clipboard operation
Blazorise copied to clipboard

Investigate: usage of async event handlers

Open stsrki opened this issue 1 year ago • 4 comments

https://www.codeproject.com/Articles/5341837/Asynchronous-Events-in-Csharp

stsrki avatar Sep 16 '22 17:09 stsrki

This reminds me of an Event helper StevenSanderson had made. Didn't that support async? Do you remember what I am talking about?

David-Moreira avatar Sep 19 '22 16:09 David-Moreira

Yes, I remember. I think Steve's solution was more for events that don't trigger re-render.

stsrki avatar Sep 19 '22 18:09 stsrki

Help me remind here, but don't you still need to trigger a StateHasChanged somewhere in the case of standard dotnet events? I believe they are not "tracked" in anyway?

David-Moreira avatar Sep 19 '22 20:09 David-Moreira

You're right. StateHasChanged is needed for regular events.

stsrki avatar Sep 20 '22 08:09 stsrki