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
Blazor WebAssembly / EditForm / OnValidSubmit event error #24139
Comments
Because you don't (can't) await the async method you execute from your property setter it takes place independently of the current chain of execution. In this case, use |
@mrpmorris if I understand should be like this, if (CurrentValueAsString == valueSnapshot)
{
currentChoices = suppliedChoices;
visible = currentChoices.Any();
InvokeAsync(StateHasChanged);
} just did it and still get the same error. |
Thanks for contacting us. |
Just following up. Is there any news about this issue? |
This is currently in our "Next spring planning" milestone while means we'll be deciding whether to investigate it next time we do a sprint planning session, which is normally once per month. We may need a more minimal repro in order to investigate it. Are you able to amend your repro code so that it doesn't require external dependencies such as CosmoDB? Thanks! Additionally, could you please verify whether the same problem still exists in .NET 5 preview? We did fix two issues whereby concurrent/overlapping events would cause this particular error, so I'd say there's a good chance this is already fixed. |
Hi @SteveSandersonMS. I just upgraded to RC1. I'm sure it'll work now. I just can't confirm because of the following error. I'm going to open an issue about that. |
Just a follow up. I opened #26043, and Azure Cosmos SDK had a bug, which has been fixed by Azure/azure-cosmos-dotnet-v3/pull/1863. I just learned this update should be available by next week. Helpfully, I'd be able to test by then. |
@ylr-research looks like your issue has been resolved. Feel free to file a new issue if there is anything more for us to address. |
@pranavkm What should I do in order to test? |
This issue has been resolved and has not had any activity for 1 day. It will be closed for housekeeping purposes. See our Issue Management Policies for more information. |
I have a sample app which basically as I type autocompletes results from Azure CosmosDB. The Autocomplete razor file is a modified version of the one here. For some reason if I submit the EditForm from Index.razor I get the error below (Console Output).
Autocomplete.razor
AutocompleteProductItem
Index.razor
ViewProduct.razor
Console Output
The text was updated successfully, but these errors were encountered: