The problem is that this seems to be very hard to achieve the following scenario in Blazor: Having a filter, that when changed calls an async function to update some data.
The typical bind does not work, as the property FilterX can not call async methods:
<input type="text" @bind="@FilterX" />
If changed to the following, async methods can be called, but two-way binding is lost. If, for example, an invalid value is entered into the input, the value cannot be reverted by code.
<input type="text" value="@FilterX" @onchange="@FilterXChangedAsync"/>
Is there any elegant way to solve this?