For me, it was called on the wrong thread. This will help:
await InvokeAsync(() => NavigationManager.NavigateTo("/chat"));