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
How do I get the reference or instance of a component?
Component references are used to invoke methods from underlying components. Use the ref attribute for a component and define it filed with the same name and same type of component. While the Counter component is rendered, the field counter is populated along with the component instance. For more information, refer to the link capture-references-to-components.
Does Blazor have to always show dates in UTC format?
This is a known issue with Mono Runtime when Blazor runs on client. Issue tracker: WebAssembly: Missing Timezone implementation As a workaround, you can use the library Toolbelt.Blazor.TimeZoneKit.
How do I call a function or method from the generated DOM button?
Generally, we are using lambda expressions to create DOM elements dynamically like in the following code snippet. The lambda expressions access variables instead of their values. The button click is triggered with the number 5. You have to include local variables while rendering the button element to properly get the index value of the clicked button element.
What are the best ways to communicate among Blazor components?
There are three techniques available for communication among components: EventCallbacks Cascading values State container By passing parameters (Parameter Routing) Read more about the communication among components in this blog.