Relative Content

Tag Archive for blazor-webassembly

Blazor load userprofile from DB before the @body renders

I am using Blazor WebAssembly for my application. After user authentication, I need to make a database call to fetch some custom properties of the user (GetUserProfile). I want to expose this UserProfile to the entire app using a cascading parameter to avoid making additional database calls in child components whenever the UserProfile is needed.

Authentication state does not change in Blazor .net8

I have Blazor WebAssembly application on .net 8. I tried to implement custom authentication in it, but my code doesn’t work. Elements located in the block [Authorized] are not displayed. In my solution i have 3 projects: Server, Client, Shared.

calling Blazor component with successive calls does not update the childComponents

I am learning Blazor and as a lesson, I am passing 2 variables to the component.
It is not updating for me.
I do not know why.
Each successive call should create a new component and add the values, but it does not seem to change the second value. Trying to get the second value working first then I will add the first, which is hard coded in the component.
Thank you.

Blazing Coffee Repo

Wrote me the steps to do in order to execute the demo of blazzing coffee repo for Blazor in Visual Studio 2022.
Wrote me the URL to download the correct repo, also.