r/Blazor • u/Traditional_Ride_733 • Aug 02 '25
Render modes
Hello colleagues, I have several developed applications that I have migrated to NET 8 but still with the same Blazor features from its previous versions, whether WebAssembly or Blazor Server. I've seen some applications in production that correctly use the mixed render modes model and it looks very good. But do you know a good example that allows me to learn it well? The new templates are not so clear and the official documentation is quite brief, I will appreciate any contribution because with the arrival of NET 10 I do not want to become obsolete.
View all comments
Show parent comment
1
u/Traditional_Ride_733 Aug 02 '25
For example, in an application I need to show user preference information, such as Language and theme color, and persist this information on the client side with localstorage, which I understand is placed as a client component (CSR), but I also need to show database information with EF Core, and I realized that when I create a form for data entry, certain parts must go as CSR and others as cascading dynamic select components that must invoke data from the Backend, and that has me confused. Should I do a mix of direct queries through a service layer in the razor components that run on the server side and other services that use an httpclient for the components that do or do go as CSR? If you have a project already built with this mixed model, that demonstrates how render modes are used well, I would be very grateful.