Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvokeAsync(StateHasChanged) from StateHasChanged() #239

Merged
merged 5 commits into from
Jul 29, 2024

Conversation

ismusidhu
Copy link
Contributor

@ismusidhu ismusidhu commented Aug 28, 2023

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.

@ismusidhu
Copy link
Contributor Author

@dotnet-policy-service agree

samples/BlazorChat/Pages/ChatRoom.razor Show resolved Hide resolved
samples/BlazorChat/Pages/ChatRoom.razor Outdated Show resolved Hide resolved
samples/BlazorChat/Pages/ChatRoom.razor Outdated Show resolved Hide resolved
samples/BlazorChat/BlazorChatSampleHub.cs Outdated Show resolved Hide resolved
samples/BlazorChat/BlazorChatSampleHub.cs Outdated Show resolved Hide resolved
@JialinXin JialinXin merged commit d28251d into aspnet:main Jul 29, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants