I have a blazor component that will be reused, the parameters in it will point to specific endpoints that are specified when the component is created. These components all need to be polling data constantly (every few seconds) as the API that I’m calling does not support streaming data. I’m having a hard time implementing […]
I have a situation that I belive the problem is the life cicle of the components, using blazor server-side and .net 8. Using the structure that blazor ofers me, after going from the login page where the user can log in with email and password, I’m being redirect to the ‘LoginWith2fa’ page to insert the […]
I have a Blazor server application in which I have a service registered to maintain state as follows: public class AppState { public bool IsAuthenticated { get; set; } public string UserId { get; set; } } In program.cs builder.Services.AddScoped<AppState>(); In Index.razor in OnInitialized() I set some value in AppState: @inject AppState AppState protected override […]