ASP.NET Core Blazor

rockylhotka,
@rockylhotka@fosstodon.org avatar

Is there any way to create/maintain a unique user id value for that goes across server-static and server-interactive pages? Other than a cookie, because that's too broad - I want something that is more per-tab than per-browser.

rockylhotka,
@rockylhotka@fosstodon.org avatar

@TimPurdum We looked into browser local storage, but couldn't figure out a way to get it working with SSR and the pre-render phase.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@rockylhotka @TimPurdum cookies are going to be your best option.

georgekinsman,
@georgekinsman@hachyderm.io avatar

peeps, is it possible to use LinkGenerator to generate links to Razor Component Pages (i.e. a .razor file with a @page attribute)?

From what I can tell there's no way to add an EndpointNameMetadata to a razor page, which means the LinkGenerator can't do its thing.

Surely this is a common scenario - is everyone just hardcoding their page URL's?

cc @khalidabuhakmeh

jchannon,
@jchannon@hachyderm.io avatar

@khalidabuhakmeh @georgekinsman @egil just as a heads up this is full Blazor SSR.

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@jchannon @georgekinsman @egil Hmmm… I genuinely don’t know. All this stuff still seems like a WIP to me.

egil,
@egil@mastodon.social avatar

Continuing experiments with , aka. + . Working on enabling support for template fragments.

Input, feedback, suggestions are very welcome indeed: https://github.com/egil/Htmxor/discussions/37

egil,
@egil@mastodon.social avatar

@khalidabuhakmeh my example matches on a route, but the the point of a fragment is that it does not make sense on its own, otherwise, it may just as well be a routable component.

Here is another example where the fragments choose to render or not, based on request headers.

https://github.com/egil/Htmxor/blob/examples-project/samples/HtmxorExamples/Components/Pages/Examples/UpdatingOtherContent/TriggeringEvents.razor

This is the article that inspired the whole endeavor: https://htmx.org/essays/template-fragments/

So for me, making an fragment addressable does not make much sense as I see it.

egil,
@egil@mastodon.social avatar

@khalidabuhakmeh in terms of routable components, this is my first attempt at docs for how Htmxor does routing: https://github.com/egil/Htmxor/blob/main/docs/routing.md

egil,
@egil@mastodon.social avatar

Usssh, now I’ve done it. I actually have to talk about htmx and blazor next monday. So I need all you folks help, what are the libraries you are using? What are the good and bad things about that combo?

https://www.youtube.com/live/-Mc9pROA0Ho?si=mpxSGkSTVV2MJT5_

Pinging @khalidabuhakmeh and my and friends!

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@egil nice 👍

egil,
@egil@mastodon.social avatar

@khalidabuhakmeh here is a pretty concise example of template fragments, routing, callbacks, setting response headers: https://github.com/egil/Htmxor/blob/main/samples/MinimalHtmxorApp/Components/Pages/Counter.razor

rain,

I am happily surprised by how clean Microsoft's Blazor is! ​:ablobfoxbongohyper:​ (Trying it out because of Iceshrimp.NET)

#blazor #iceshrimp

maartenballiauw,
@maartenballiauw@mastodon.online avatar

OH: " is the Hummer of web frameworks"

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

There’s a strange behavior\bug where the ::deep selector doesn’t work unless your component appropriately has a wrapping HTML element because the unique attribute for scoped CSS gets added to the first HTML element in the component.

Shooting Star GIF

TimPurdum,
@TimPurdum@dotnet.social avatar

@khalidabuhakmeh that definitely sounds like a bug. Do you know if it's been filed in Github?

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@TimPurdum 🤷‍♂️ I just write blog posts

ewisniowski,
@ewisniowski@mastodon.sdf.org avatar

Howdy folks,

I am still applying for jobs. I feel like a compulsive gambler chasing the next big score, but I keep my chin up. I am working on a longer-form video for my Blazor work and will post it. Maybe I am just doing it wrong.

🏴‍☠️ 🐻

damienbod,
alvinashcraft,
@alvinashcraft@hachyderm.io avatar
mez,
@mez@mastodon.nz avatar

If I have to resort to Wikipedia to understand your product naming conventions and history, I just feel like either you aren’t doing a great job organising your product, or it isn’t ready for primetime.

I’m honestly still not sure what problem for is solving aside from C# / backend developers don't want to learn front-end code (understandable, I didn't want to learn C#) or use untyped JavaScript (solvable, calm down).

Yay, the C# ties to the FE, is that really that good?

damselfly,
@damselfly@fosstodon.org avatar

@TimPurdum @mez this. I picked blazor precisely because the whole js/yarn/npm etc ecosystem is awful. Really horrible. I have a 500k LoC app with a very rich dynamic UI that has about 100 lines of Javascript in it, and that, for me, is a huge win.

Having compile time type checking for client, server and the comms between them is a massive win in terms of error reduction and consistency. Sure, you can do it in JS or TS but it's harder and not as fully integrated.

mez,
@mez@mastodon.nz avatar

@damselfly @TimPurdum Checking out the Damselfly and it looks like a use case where I can see the benefits of Blazor. I wouldn’t bat an eye at an app of the complexity and power (it’s doing object detection) taking 10 seconds to load in a WASM bundle or require a persistent WS connection. You definitely have a win there!

vincentbaaij,

Out now: the Microsoft UI library v4.3. With a new Wizard component, 45+ fixes and changes and a restructured docs site . All details in my blog at https://baaijte.net/blog/microsoft-fluentui-aspnetcore.components-4.3/…. Packages are available on NuGet now!

Example of the new Wizard component

KristofferStrube,
@KristofferStrube@hachyderm.io avatar

I don't advertise very often. But!
In the new year, I have some more time for consultancy work if anyone has some Blazor-related projects they need help with. I have a broad knowledge of most Blazor in general, but I specialize in performance, highly interactive UIs, and utilization of native browser APIs.
Share if you know anyone who might need some help.

n, Swedish
@n@mastodon.nu avatar

Dåliga tider. En vän blev uppsagd igår. Han är en stjärna på och . Vem var det som postade ett sådant jobb häromkring häromdagen?

n,
@n@mastodon.nu avatar

@selea

Ja, jag hör trevliga saker om det, men har inte provat själv. Jag ritar mest rutor och pilar om dagarna ändå. Om ens det.

Min min vän är däremot såld på detta tjack..

selea,

@n

hoppas att han iallafall för .net på linux :3

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

Someone left this comment on the blog about our Developer Ecosystem survey regarding . 🫨

Update: not sure I agree considering Blazor has multiple serving models.

range_marten,
@range_marten@dotnet.social avatar

@khalidabuhakmeh but what is the connection to SignalR?

khalidabuhakmeh,
@khalidabuhakmeh@mastodon.social avatar

@range_marten This person is suggesting that since Blazor has a SignalR variant then that’s the same audience.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • blazor
  • Leos
  • thenastyranch
  • InstantRegret
  • mdbf
  • Durango
  • rosin
  • khanakhh
  • DreamBathrooms
  • magazineikmin
  • Youngstown
  • ngwrru68w68
  • slotface
  • everett
  • kavyap
  • megavids
  • tacticalgear
  • cubers
  • modclub
  • osvaldo12
  • ethstaker
  • normalnudes
  • anitta
  • cisconetworking
  • tester
  • GTA5RPClips
  • provamag3
  • JUstTest
  • lostlight
  • All magazines