AzureSignalR-samples
AzureSignalR-samples copied to clipboard
InvokeAsync(StateHasChanged) from StateHasChanged()
Browser was not getting changes promptly. It was getting changes one event late. e.g. if user clicks send button, then it would get pending message from other users and it would still not show the message that was sent by itself which would be shown only after another action from the user.
This correction is taken from https://learn.microsoft.com/en-us/aspnet/signalr/overview/getting-started/tutorial-server-broadcast-with-signalr.
@dotnet-policy-service agree