On .NET Live: Supercharging Blazor SSR with htmx

  Рет қаралды 9,993

dotnet

dotnet

Күн бұрын

Пікірлер: 10
@ben5219
@ben5219 8 ай бұрын
Great demo Egil. I've been wanting to do something similar, and have started a Blazor + HTMX project that was going Ok, but I was ignorant of some of the power of HTMX.....so thanks. I look forward to reviewing you code in a bit more detail.
@ryansaunderson7261
@ryansaunderson7261 8 ай бұрын
How much harder would it be to build this example using Razor Pages & HTMX and ignoring Blazor all together?
@seancpp
@seancpp 8 ай бұрын
I've been researching combining HTMX and blazor/razor pages for a short while now, and it's interesting to see this livestream which shows me others are also seeing the potential here. I've come to this same question as you and have been experimenting with combining Razor Pages and HTMX, to test its viability for a production system. My first impressions are that htmx and razor pages work very well together. With razor pages, each page's model contains the request definitions that htmx will use for interactivity. Like the OnGet() method for example. It's almost like they were made to work together. I haven't had a chance to use it in production but so far in my personal testing it shows me huge potential.
@stevenfranzen2161
@stevenfranzen2161 8 ай бұрын
We've been using this combination for a small internal website and we have the same experience as @seancpp. I started it as a Blazor Server app, but one of my team members wanted to experiment with HTMX and rewrote it using Razor pages. The biggest difference with regular Razor pages is just that the OnGet() methods now only render the full page for normal requests. For HTMX requests, they return partial pages that HTMX then inserts into the DOM as instructed, which naturally suits SPA designs. Although not specific to Razor pages, this difference is also relevant to browser caching: if you serve different content for HTMX requests and the header includes a Last-Modified timestamp, you should add "Vary: HX-Request" to ensure that browsers fetch the right cache entry. Otherwise, it also just works (TM).
@KieranFoot
@KieranFoot 8 ай бұрын
What is the name of the track plying on the starting soon sequence?
@garrettlondon470
@garrettlondon470 8 ай бұрын
Incredible!
@pixelpanda2227
@pixelpanda2227 8 ай бұрын
how about fixing all of this shit in blazor first?
@montytrollic
@montytrollic 8 ай бұрын
+1
@slynch401k
@slynch401k 3 ай бұрын
Please slow down when you're talking. It Is very difficult to understand what you're saying because of your accent.
@DaveRetchless
@DaveRetchless 6 ай бұрын
All these round robin technologies to get back to JavaScript client interactions that we have had for years. Fail!
On .NET Live: Next-level EF Core Data Seeding with Bogus
1:00:47
She wanted to set me up #shorts by Tsuriki Show
0:56
Tsuriki Show
Рет қаралды 8 МЛН
From React To HTMX
40:01
ThePrimeTime
Рет қаралды 344 М.
ASP.NET Community Standup: Fluent UI Blazor
1:20:55
dotnet
Рет қаралды 18 М.
EP:69 Adding object storage to our cluster with MinIO
1:06:07
How HTMX is changing the web, with Carson Gross
1:51:19
Jeremy Howard
Рет қаралды 22 М.
Mastering .NET 8 Blazor: Server-side Rendering (SSR)
23:55
Coder Foundry
Рет қаралды 11 М.
ASP.NET Community Standup - .NET 9 Roadmap for ASP.NET Core
1:22:40
She wanted to set me up #shorts by Tsuriki Show
0:56
Tsuriki Show
Рет қаралды 8 МЛН