Skip to content

Commit 6ba9bd6

Browse files
authored
Merge pull request #101808 from jan-oratowski/patch-2
FIX: Exception when calling StateHasChanged
2 parents 0183925 + 4d2ff4f commit 6ba9bd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/azure-signalr/signalr-tutorial-build-blazor-server-chat-app.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ Beginning in Visual Studio 2019 version 16.2.0, Azure SignalR Service is built i
185185
_messages.Add(new Message(name, message, isMine));
186186
187187
// Inform blazor the UI needs updating
188-
StateHasChanged();
188+
InvokeAsync(StateHasChanged);
189189
}
190190
191191
private async Task DisconnectAsync()

0 commit comments

Comments
 (0)