Issue—Blazor – System.InvalidOperationException: Object of type
‘BlazorDataBinding.Pages.Counter’ has a property matching the name ‘IncrementValue’, but it does not have [ParameterAttribute] or [CascadingParameterAttribute] applied. You must mention the [Parameter] attribute for the component attributes.
Issue—Blazor – InvalidOperationException: Cannot identify unique bin directory for Blazor app.
Open the application in File Explorer and delete the bin/Debug & bin/Release folders. Now, clean and run the application.
Issue—Blazor ValueChanged event did not fire with built-in input elements
Yes, this is a known issue in Blazor. You can track the issue link in the ValueChanged event not fired thread. The following code snippet will work. You have to update the model manually because handling the ValueChanged event does not let you use the @bind-Value we need to use ValueExpression instead of @bind-Value. Instead, you can also use the OnValidSubmit form event to get and process the value.
What if the component ref/instance is not working? Or the component ref is undefined?
The component instance filed is populated along with the component after rendering completion. You must access the component instance in the OnAfterRenderAsync or OnAfterRender methods of the Blazor lifecycle.
Issue—Blazor: IJSRuntime.InvokeAsync serialization broken for arrays of objects.
The InvokeAsync accepts only params object[] args, so the array of objects is parsed as a single, top-level entry in args. You have to pass the array of objects as a single object by casting. The following code only passes the single array object. [JS helper] [Razor] By casting the array into an object, it retrieves all the values. Refer to the following link for more information. https://github.com/aspnet/AspNetCore/issues/8743