.NET 8 Blazor🔥All Render Modes (SSR, Server, WebAssembly, Auto) Explained for Beginners

  Рет қаралды 16,235

Patrick God

Patrick God

Күн бұрын

🚀 Join the .NET Web Academy: dotnetwebacademy.teachable.com
➡️ Use code START2024 for 10% off!
🚀 Get the .NET 8 Web Dev Jump-Start Course for FREE: dotnet8.patrickgod.com
💖 Support me on Patreon for exclusive source code access: / _patrickgod
🐦 Let's get social on Twitter/X: / _patrickgod
🔗 Let's connect on LinkedIn: / patrickgod
Table of Contents:
00:00 Project Configuration & Blazor SSR (Static Server-Side Rendering)
05:05 Blazor Server Render Mode
08:26 Use Component instead of Page
11:44 Blazor WebAssembly Render Mode
20:26 Blazor Auto Render Mode
#DotNet #Blazor #AspNetCore

Пікірлер: 54
@HenningKilset76
@HenningKilset76 Ай бұрын
I really appreciate how you pull apart the default templates and show what actually matters. Thanks for that.
@TohidAzizi
@TohidAzizi Ай бұрын
Definitely, the best video I have seen so far trying to explain and differentiate SSR, Server rendering, WebAssembly, and Auto rendering. Thank you, Patrick.
@christiantricarico
@christiantricarico 3 ай бұрын
Starting from a project without interactivity and adding the pieces step by step really help to understand new blazor features. Good job!!
@xakzpc
@xakzpc 4 ай бұрын
Ironically perfect timing. I wanted to start explore htmx + Blazor SSR today and here is a brief introduction of render modes. Thanks 👍
@PatrickGod
@PatrickGod 4 ай бұрын
Glad I could help!
@maykonelias
@maykonelias 3 ай бұрын
Very nice, the best explanation about how the rendering works, thanks for share Patrick!!
@PatrickGod
@PatrickGod 3 ай бұрын
My pleasure! Glad you enjoyed it and thanks for your feedback!
@warrenhales
@warrenhales Ай бұрын
Excellent video. Starting from the Interactive Render Mode: None template and adding everything in step by step to get all the way to Auto was extremely valuable to me. Thanks Patrick!
@BarriDuty
@BarriDuty 4 ай бұрын
I didnt know you could use forms in SSR, I would love a video on that
@teriyakov
@teriyakov 4 ай бұрын
Thanks again for this Patrick. Would love to see a simple login flow with basic .net identity (with particular attention to how cookies or tokens would be persisted). Previously you had secure storage for server apps and browser storage for wasm apps. What would be the best implementation in this latest iteration of Blazor?
@cfeze
@cfeze 2 ай бұрын
Thanks a lot! I was confused about how this works now I'm getting because you!
@FearGod123
@FearGod123 4 ай бұрын
Great video. Thank you Patrick!
@jimvacca7101
@jimvacca7101 4 ай бұрын
Great content! I had already learned most of what you shared but love that you put it all together!! And I was tempted to start with a SSR project and add the other items to convert to the other project types - so thank you for doing that and showing us the magic that occurs!! Great stuff and big fan of your content!!
@timroberts_usa
@timroberts_usa 4 ай бұрын
good -- to understand how to convert my various render modes and related project(s) structure and dependencies.
@AvinashGadiraju
@AvinashGadiraju 4 ай бұрын
Great intro video, Thank you!! Saved my day.
@acmesoft
@acmesoft 4 ай бұрын
Really helpful! Thank you!
@gianfrancodiaz6486
@gianfrancodiaz6486 2 ай бұрын
I loved this explanation! Now I know what VS does in the background when I choose the Blazor Web App template. Would it be possible for you to teach us how to set up TailwindCSS in Blazor 8?
@sarikaransubhe6562
@sarikaransubhe6562 Ай бұрын
Indeed it helped 🤩 Thanks
@Artokieffer
@Artokieffer 4 ай бұрын
And how do you access data with a Web Assembly component when you need real data and not just a simple counter who doesn't need any call to your Blazor "server" project ? Because I've seen so much examples of the new render modes but no one is talking about how you retrieve real data when using a Web Assembly component. Do we need to create an API project just to manage some call which will only be used in Web Assembly render ? Because the other day I was trying to create a controller API within the Blazor "Server" project to be accessible by the Web Assembly but it didn't work.
@26anti
@26anti 4 ай бұрын
In Blazor, the render in auto mode allows you to use both the server and WebAssembly. Therefore, the purpose of this mode would be to leverage the server for the initial load, thus avoiding the WASM problem on other pages. Additionally, you can use the server on specific pages if necessary. I am right?
@user-mj8xn4wi9t
@user-mj8xn4wi9t 4 ай бұрын
You are the best ❤
@The-Z-Zone
@The-Z-Zone 4 ай бұрын
These new render modes are very confusing. The example done in this video would have been a much better set-up for the boilerplate code to show the minimum required to get it working. Great video
@oncalldev
@oncalldev 4 ай бұрын
Really enjoy these short overviews. As I get deeper into Blazor with all the variations between server and client interactions, it's becoming apparent that there's a need to really spend the time and organize my code and structure so I can even find what I'm looking while building out an application. Time to step back and think more about such things as architecture, folder structures, naming conventions, etc. Hmm, sounds like a possible future video.
@Wynnytsky
@Wynnytsky 3 ай бұрын
What I'm observing is that the WASM module is completely lazy, and only downloads if you touch a route it serves. So if a user doesn't have certain roles then he'll be spared that background download. That's the holy grail for performance and security -- it's safe to include admin WASM module in your public site. Also, this is the first time I've seen a Program.cs executed in a project that isn't flagged for startup. Blows my mind!
@georgestavrou8785
@georgestavrou8785 3 ай бұрын
Really nice video and i learn and refresh a lot of knowledge here. I would like to see also how services works? Singleton, Scoped, etc when you are using different render modes. Can you have a video for Services also as this video of how the lifetime of each service works depending on the render mode???
@oluwatosinaboluwarin8653
@oluwatosinaboluwarin8653 4 ай бұрын
Great improvement from your previous videos on this topic, it is clearer now. I also want to ask, why in a real-world application would I want to have a Blazor Web App with the Interactivity Location set to "Per page/component" but not "Global"
@flyaway319
@flyaway319 Ай бұрын
nice... is auto the same as united?
@alfonsdeda8912
@alfonsdeda8912 4 ай бұрын
Hi Patrick, very nice explanation! I have one doubt, when is convenient to use old server mode over auto mode?
@RashakaVLOGS
@RashakaVLOGS 4 ай бұрын
Great video! Thank you, Patrick. Can you do the Blazor together with TabBlazor template?
@healthyliving9746
@healthyliving9746 3 ай бұрын
Is auto rendering mode can be use for manage the database? for instance if the connection is lost then we still can use 'local db' and after the connection established then we use the 'server db'? and how about synchronize the data between 'local db' and 'server db'? please advise...Thank you.
@waleedbensumaidea3947
@waleedbensumaidea3947 Ай бұрын
This sounds cool to be implemented. But will be hard to implement it. Have you did that yet?
@andvik84
@andvik84 4 ай бұрын
Great video! A question I'm wondering about: How does it work with signal-R circuits if you land on a completely static page, and then go to an interactive component? How does scoped services work with this?
@joalrocha76
@joalrocha76 3 ай бұрын
Great Tutorial. Patrick, could you make a tutorial about SEO with Blazor? Now with SSR, this is better.
@GeromeGuillemin
@GeromeGuillemin 4 ай бұрын
Nice video as usual Patrick! Now I come with a question: I have a Net 6 stack project with ASPNET Core as server and WebAssembly as client. In my client I have an appsettings that indicates the server address where the client has to connect to reach server. How to define the server endpoint with the new stack in Net 8 as of now in order to be able to deploy and use such a solution ported from net 6 to net 8 ? Any advice or a small video on that point please ? Thanks again and keep up the great work!
@fahadaltafBA
@fahadaltafBA 4 ай бұрын
How we can host this new Balzor web app in azure?
@SebastianReyesjsrc1990
@SebastianReyesjsrc1990 3 ай бұрын
Hi, Good Video, Can i put @rendermode InteractiveWebAssembly in a page that is placed in server project, or i need put it neccesary in client project
@mibli2935
@mibli2935 2 ай бұрын
Followed the tutorial, everything works on each step except that I don't see Wasm downloading
@enricoroselino7557
@enricoroselino7557 3 ай бұрын
okay then the practices is to put server interactivity in server project and wasm interactivity in client project ? or it can be live in one project whatever the rendermode ? what do you think the best ?
@10Totti
@10Totti 4 ай бұрын
So if we use auto mode to read data from a database, do we have to create two interfaces, one for Server mode and one Wasm?
@amirameri1354
@amirameri1354 22 күн бұрын
Nice video . How can i Used Server side like controller API on Blazor app with auto(server and webassembly) with individual account ? it is good because i can used authentication and authorization for API on Server side. Thanks
@suhutwadiyo
@suhutwadiyo 4 ай бұрын
thx ya.. btw i can't breakpoint/debug on ButtonClick when InteractiveWebAssembly mode
@yassermian9913
@yassermian9913 3 ай бұрын
my question is that no matter what the render mode is...page is not going make a server trip like old fashion asp...ami right?
@MrBenix181
@MrBenix181 3 ай бұрын
Hello, I still don't understand the practical used case of when Using WebAssembly or Server side render. Particularly when it comes to choose the blazor project in VS, we have too many choices. From which Blazor project to its Render mode. How to choose according to the future app ?
@alkishadjinicolaou5831
@alkishadjinicolaou5831 14 күн бұрын
How does this affect MAUI Blazor Hybrid ?
@dfmf1982
@dfmf1982 4 ай бұрын
HI Patrick do you have a plan for create a cource NET MAUI BLAZOR APP... mix both tecnology.?
@Aisaneslamchalandar
@Aisaneslamchalandar 2 ай бұрын
Yo
@ankeshankur3058
@ankeshankur3058 5 күн бұрын
Hii , i want to understand which render mode we should use, because i am confused between interactive server mode or auto render mode...? Any plz reply....
@alialshreef2874
@alialshreef2874 7 күн бұрын
when chose project Server The Button in Counter the @rendermode InteractiveServer is not Working !! the Breakpoint ALL Button Not Working
@mboycenyo
@mboycenyo 4 ай бұрын
If I have an InteractiveAuto component that retrieves some data from a database, we might do this directly when rendered on the server but via an API when rendered on the client. How do Blazor applications typically handle this? One thing you probably don't want to do is accidentally send your data access DLLs down to the client and potentially reveal a load of details about your database.
@TheAstroguypasa
@TheAstroguypasa 4 ай бұрын
I have been thinking about this. But looks like you will need to have an interface that is implemented on both client and server. The server one has access to the data access dlls. The client one simply accessing a http client. Then let Dependency injection work the magic for you.
@mithranr184
@mithranr184 4 ай бұрын
Hi @patrick i have a doubt regarding multiple openid implementing like login with google ,facebook and microsoft in blazor wasm alone without involving backend i have tried implementing seperately in three seperate wasm projects its works fine but i need all the there authentications in one wasm how to do that? please help.
@user-up8qv3ts2w
@user-up8qv3ts2w 3 ай бұрын
Hi , i like what you are doing , Please a i have a question , i have a APi that handle generating authentication with jwt access token , and all my logic is in this API , i want to use blazor as frontend with rendermodeAuto, how to use the JWT in this case? for WASM si I have no probleme , but with Blazor RenderModeAutho i am lost Thank you
FOOTBALL WITH PLAY BUTTONS ▶️ #roadto100m
00:29
Celine Dept
Рет қаралды 56 МЛН
Зу-зу Күлпәш. Стоп. (1-бөлім)
52:33
ASTANATV Movie
Рет қаралды 1,2 МЛН
Referral portal: Which platform is best? | Ontraport
7:23
Ten Amazing Blazor Features You Must Know
25:34
Gavin Lon
Рет қаралды 4,8 М.
Blazor Render Modes in .NET 8 and which Web App Template to choose
28:51
Blazor: Why 2024 Is The Year Of Blazor 🚀
9:40
Coder Foundry
Рет қаралды 22 М.
Mastering .NET 8 Blazor: Server-side Rendering (SSR)
23:55
Coder Foundry
Рет қаралды 9 М.
Full stack web UI with Blazor in .NET 8 | .NET Conf 2023
55:56
Is Blazor Better than React?
14:25
Gavin Lon
Рет қаралды 39 М.
FOOTBALL WITH PLAY BUTTONS ▶️ #roadto100m
00:29
Celine Dept
Рет қаралды 56 МЛН