In my continual descent into the world of #DotNet I am looking to create a web app with #HTMX. Is Razor really my best choice in this ecosystem? I was hoping to leverage my Jinja knowldege, but can't seem to find a good Jinja solution for .NET.
Using #HTMX to reimplement the Counter example that ships with the #Blazor template. Can you tell which one is using WebSockets and which one isn't? #dotnet#aspnetcore#javaScript
#Blazor, after 5 years, still only sees 16% of usage in the #aspnetcore crowd.
It supports my assumption that putting all the eggs in the Blazor basket might hurt overall ASP.NET Core adoption with folks looking for familiar paradigms like MVC or HTML. #dotnet
Anyone wanting to see how to integrate #Blazor and #HTMX can check out this repo. There are not a lot of steps, but I can see this being useful for folks who want to avoid almost all JavaScript.
Here’s a sample of using IAsyncEnumerable with #Blazor server rendering. You can't use the method directly, but you have to invoke and change the state within a lifetime event like OnInitializedAsync and be sure to call StateHasChanged.
So, I’m exploring server streaming, but I realize that #Blazor doesn't support IAsyncEnumerable (so far that I've found).
This means that while streaming the rendered results is async, you still have to have all the data at the time of rendering. A slow dependency can still affect your Time to first byte (TTFB). :\
This feature improves the UI layer but not necessarily the backend layer.
I wrote This neat demo to demonstrate #aspnetcore support for streaming JSON results via IAsyncEnumerable. This allows the client to use data as it gets transmitted rather than waiting for ALL OF IT. #dotnet
So I got my Razor Pages demo working with #HTMX boost concept and view transitions. And with a few lines of CSS and no #aspnetcore backend changes, I get this sweet transition animation. What do you think, #dotnet folks?
We just launched some brand new Microsoft Learn Training modules for building cloud native apps with .NET. You can do them all for FREE from the browser with nothing to install! I show you how:
Have you ever wondered how to #test your #dotnet#Blazor applications? Join me and Scott Sauber today, where he presents his approach to doing just that!
The chat is always lively and fun, so please bring questions. I'd love to see you there. Cheers :) #aspnetcore
If folks are doing #Blazor#Wasm development on #Linux. You'll need a browser that supports Chrome Developer Protocol. If you don't want to install Chrome, then Chromium is a good option.
Be sure to update the "Chrome" option in your settings to point to chromium. It should just work. #dotnet#aspnetcore
@jonhilton Yeah, tbh. It’s a bummer to see Razor come so far with MVC and Razor Pages, just to take a step back and reinvent some of the same things but for Blazor.
Blazor is “fine”, but it comes at the expense of lost momentum and reinventing-the-wheel syndrome.
I liked that #aspnetcore had these paradigms that worked together, but Blazor seems to have taken a "eat the world" approach that is a step backwards.
In this post I describe the new short-circuit routing feature, how it differs from normal routing, discuss why it's useful, and look at how it's implemented.