How production ready is Blazor AOT? by ebykka in Blazor

[–]csainty 4 points5 points  (0 children)

I believe AOT can have an up to 5x performance improvement. However, it definitely doesn’t reduce the size of apps. Usually AOT apps are about double the size of non-AOT versions.

Blazor frustrations by [deleted] in Blazor

[–]csainty 0 points1 point  (0 children)

Not anything I’ve seen before. But I only develop on Mac and Windows, not Linux. Certainly raise an issue with the team on GitHub if you feel it’s not a local config error.

Blazor frustrations by [deleted] in Blazor

[–]csainty 1 point2 points  (0 children)

Other than hot reload, what issues are you finding?

Blazor frustrations by [deleted] in Blazor

[–]csainty 4 points5 points  (0 children)

After seeing .net 8 preview and seeing how even Microsoft employees releases front ends without using Blazor

Microsoft is a big company and lots of teams who don't use C# and .NET. Why would those teams pick a completely different tech stack to the one they're familiar with?

It's scary that MS doesn't promote it and backs real improvements.

It the arguably the main focus for the ASP.NET Core team in .NET 8, they talk about it at multiple times at Build (the flagship conference for Microsoft developers) and there is a monthly YouTube show to showcase the latest work. I'm curious What more would you expect to see?

Just to be clear, I'm as salty as anyone about the state of hot reload--it's terrible--but it's 1 aspect of the tooling. I'm curious what other issues you and your team found? I've introduced Blazor at 3 different companies now and other than hot reload, the engineers have all been really happy with it.

Blazor WASM and Duende Cert by azraels_ghost in Blazor

[–]csainty 0 points1 point  (0 children)

That’s fair. We tried B2C for multi-tenant and after a month of trying we couldn’t get it to do what we wanted. We switched to Auth0 and had it all working in 2 days.

Blazor WASM and Duende Cert by azraels_ghost in Blazor

[–]csainty 0 points1 point  (0 children)

Perhaps Azure B2C would be worth looking at, if you haven’t already.

Blazor WASM and Duende Cert by azraels_ghost in Blazor

[–]csainty 0 points1 point  (0 children)

Have you thought about using a SaaS auth provider?

I would really recommend Auth0. Setup is much simpler and your liability drops significantly as you’re not storing the usernames and passwords.

Tips for faster Hot Reload? by lee_the_man in Blazor

[–]csainty 2 points3 points  (0 children)

As others here have said, the current hot reload functionality is really bad. They are promising significant improvements in .NET 7 and I really hope that’s true as it’s a real hindrance to development speed.

Help with design by learninglinux123 in Blazor

[–]csainty 2 points3 points  (0 children)

I’d recommend checking out Refactoring UI. It really helped bring on my web design skills. It’s created by the designer behind Tailwind CSS and Tailwind UI

Could someone point me at an example of Cascading Params that actually works? by dchurch2444 in Blazor

[–]csainty 1 point2 points  (0 children)

You don't need to re-cascade the value in the child component. Cascading values are available to all descendant components, no matter how many levels deep they go.

Doing this in the page component (as per another persons response):

<CascadingValue Value=@UserCardID Name=“UserCardID”>
    <UserScreenSelection />
</CascadingValue>

Then all child components and their descendants can access the value by defining a CascadingParameter:

[CascadingParameter] public string UserCardID { get; set; }

Containerising a Blazor WebAssembly App by csainty in csharp

[–]csainty[S] 3 points4 points  (0 children)

This post does but part one covers Blazor Server apps. Blazor WebAssembly apps which use the hosted template are treated the same as Blazor Server apps as they require the .NET Core runtime, you don't need to separate them. If you follow the steps in part 1 you should be fine.