.NET 8 Blazor WebAssembly api responses List of objects shows count of 0 but actually has elements
I have a .NET 8 Blazor WebApp project with a separate WebAssembly project for the front end. When I call the api and return a list of objects, it shows a count of 0, yet actually contains elements. It shows both in Rider’s debugging value watches and when I am looking at List.Count value in code. In postman the json that the api is returning is formatted correctly, so I think it’s something to do with the deserialization on the WebAssembly side. But have no idea what I’m doing wrong.
Button work only on variables .NET 8 Blazor Web Assembly
I tried to modify my “Counter.razor” code with a Console.WriteLine, but nothing is printed inside of the console, and the counter get the +1.
Blazor WASM page slow rendering on large dataset
I have a component that has multiple method calls in the OnInitializedAsync
method.
One method is giving problems when the data it returns is large.(Estimate of 4mb when testing the return data in postman.).
The retrieval of the data seems fine, but the issue I am experiencing is that after the call is finished, it takes the UI long to respond/update. In some instances I experience that the entire page freezes.
When I remove this method or the data is small, I experience no problems.
The info that gets returned is mainly a string of a html formatted document created from a htmleditor component.
The data from this call gets displayed in the component.
Feature managment in Blazor WASM
Is there any resource to help me configure features in Blazor WASM project?
Adding Conditional HTML Ending and Opening Tags in .NET 8 Blazor Page
I am trying to find out what the recommended approach is for adding conditional closing and opening tags HTML into a .NET 8 Blazor Page such as to equally split up database records into 3 <div class="col-md"></div>
tags when outputted on the page in this case to display a restaurant menu.