1 Critical Blazor Mistake to Avoid in 2024: Interactive Auto Render Mode

preview_player
Показать описание
---
Рекомендации по теме
Комментарии
Автор

Finally someone talking about the main issue with the Auto mode. Blazor templates are not as ready to go (except for Server) as they were with .Net 7.
New developers will think that Auto is the default mode and the best of both worlds but you are always dealing with two modes (Server and WASM) that are fondamentally different and no one is telling you that it's dangerous.

API calls are one example but you'll find even more complex issues when you'll want to use localSotrage for instance.
So be careful when you want to use the Auto mode. It's sexy on the paper but it can lead to big headhaches and too much complexity for nothing.

julienbarach
Автор

This rendermode stuff is really confusing. Thanks for this great explanation and sample!

der-mit-dem-rotwild-tanzt
Автор

Going out on a limb here...
For a new "WebAssembly" or "InteractiveAuto" project, I think it's a mistake to assume the non-client project is the server. I think it's simply two client projects. Both DLLs are downloaded to the web browser with the .NET wasm runtime. The purpose of the two projects are just to break up the pages based on their render modes.
After all, why would a server project have a reference to a client project? It's just weird. It goes against all my development experience.
We Blazor developers continue asking the question, "What was Microsoft thinking?" while we try to make sense of the two VS projects, blaming ourselves for not understanding it and trying to mold the code into the .NET 7 project pattern.
I think if we want a server project, we should just add a separate Web API project like in .NET 7.
Thank you as always, Patrick.

SBDavin
Автор

How do you think it is possible to turn these 2 separate services into server and client. For separate instances of the mediator. We inject the mediator into the component. If it runs on the server then it uses the corresponding handler. If on the client, then the corresponding handler does the http query. And the controller uses the mediator from the server.

krrk
Автор

Hi, please could show us how we can do an authentification using active directory? Please

boueliw
Автор

Привет, Мир! Я начал использовать Blazor 8 и столкнулся с проблемой контроля за персистентностью состояния при использовании режима AutoInteractive, где почитать/посмотреть лучшие практики по данному режиму рендеринга?

webmaster
Автор

I think this title should just be like 'how to use services in Auto rendermode' or something similar. Good explanation and video though

imSkod
Автор

Love ittt!!!
You need a video editor bro ?
I can do a sample video 👊🏽

Hasan-ohvl
Автор

Hi Patrick I saw you're looking for an editor! I'm available and emailing you.

Conjuredfilms
Автор

No way I could bring myself to make two database calls for every page load across every web app I run.

mtranchi