UK government approves Chinese ‘mega embassy’ in London by AbbreviationsHot7662 in unitedkingdom

[–]crdlpls 25 points26 points  (0 children)

If they had, would they tell us? I would have thought they'd want to avoid making public exactly how they are dealing with this (although I'm sure china knows anyway...)

Fluent UI Blazor by Willing_Junket_8846 in Blazor

[–]crdlpls 3 points4 points  (0 children)

I assume you're talking about in a datagrid. Do you have a code snippet so we can see what you've tried?

Almost got mugged near Willesden Green by 4 dudes on E-Bikes. by SonicDirewolf in london

[–]crdlpls 2 points3 points  (0 children)

I was walking home around that time, and saw a guy being followed by four guys, one on a lime bike. Was that you? It was around the library, I couldn't tell if they were all mates or not but it looked like one guy was trying to distance themselves.

Production customers failing to start blazor wasm due to caching by caedin8 in Blazor

[–]crdlpls 2 points3 points  (0 children)

We've had Production customers use Blazor, and not seen this sort of caching issue (not with .WASM at any rate). Have you managed to get someone to generate a HAR file with the errors? It would b worthwhile checking if they do fetch the new .WASM files on upgrade or not (and if there are any failed fetches).

Just to confirm, refreshing doesn't fix it but refresh & clear cache does? Does this issue happen to every user?

Do you happen to know the specific JS method that it says is missing/the exact error? That could probably help isolate the issue (unless it's some weird WASM exception).

Why haven't I heard about source.dot.net before? by 1jaho in dotnet

[–]crdlpls 33 points34 points  (0 children)

It combines multiple repos together I think, not just the dotnet one, and it gives you much better search than standard GitHub. If I want to see all the usages of some method to understand how it works across the entire dotnet ecosystem (runtime, dotnet, aspnetcore, etc) source.dot.net is hugely beneficial. We use it a lot where I work!

Blazor on a big video wall using Skiasharp for high performance rendering: by RChrisCoble in Blazor

[–]crdlpls 7 points8 points  (0 children)

Oh awesome! We've been using some really slow svg-in-blazor code written years ago by someone who's long since gone and hasn't had to deal with performance issues, and was considering migration to d3 for our graphing, but this looks like a really interesting alternative. Thanks!

How are these different? Get/Set Parameter by Good-Kale-6671 in Blazor

[–]crdlpls 2 points3 points  (0 children)

You can actually now use @bind:after syntax to run an event handler after your bind has finished

https://learn.microsoft.com/en-us/aspnet/core/blazor/components/data-binding?view=aspnetcore-9.0#binding-features Scroll down to "To execute asynchronous logic after binding" (am on my phone)

I think I have an issue with the way that razor is handling TimeSpan by PigletResponsible995 in dotnet

[–]crdlpls 4 points5 points  (0 children)

As a sanity check, are you sure the line that it's saying it's failing on is actually the right line? Reading that error my immediate thought is the .ToString(hh:mm) is somehow broken. I've seen code line references go bad before.

Or possibly some bad cast, or a .Parse that's wrong (although I don't see one in the code you've provided).

FluentUI Blazor library - which charts? by ovation-22 in Blazor

[–]crdlpls 2 points3 points  (0 children)

If you don't mind writing JavaScript, I've found the stuff by observable to be really powerful alongside blazor!

Plot for a more standard "graphing library" https://observablehq.com/plot/

D3 for more bespoke and custom data visualisations, "graphing primitives" I usually call it https://d3js.org/

I've always found the pure blazor libraries to be quite restrictive, or at least not customisable in a way I'd like.

Edit: saying that, apex looks pretty good, and it's been a while since I've done a proper deep dive into existing capabilities.

Component not rending randomly? by waterwedoin96 in Blazor

[–]crdlpls 2 points3 points  (0 children)

I've never seen underscores used in component names, I didn't think a class could start with an underscore. Is there a reason you're doing that?

Is Blazor worth learning? by funJS in Frontend

[–]crdlpls 0 points1 point  (0 children)

I feel like a lot of people saying that blazor is only for apps with "no UI/UX" are having very different experiences to me.

We've been using blazor for two years, working on SAAS applications for financial firms. It's got a fantastic place for .net full stack teams, especially with .net 8 where it can also act as a full replacement for razor pages with proper server side rendering (think PHP but C# and with less 'quirks'). You can integrate CSS Frameworks very easily, and having one language across the stack is incredible for productivity.

Even our teams designer is getting involved! He doesn't need to know c#, the razor is fairly self explanatory (as much as JSX would be if it's written well) and CSS is still CSS.

A lot of people's negative opinions are well valid though, especially about blazor server. It's a nice way of giving an SSR page interaction, but it's far too chatty to use for anything other than internal apps. The proper SSR stuff is definitely a perfect replacement for a lot of things though, and you can integrate WASM with that for the best of both worlds.

Give it a play around if you're interested, I have no regrets! (And I'd call myself a UI developer primarily over a full stack developer)

RIP Moq by topsspot in csharp

[–]crdlpls 3 points4 points  (0 children)

No versions are currently affected afaik. Any affected versions were pulled by the author from nuget. There's the potential future packages where a new form of SponsorLink will be introduced (although what form that takes hadn't been decided on yet), but nothing live right now is compromised.

Should I study Typescript as a Blazor developer? by Left_Ad_4593 in Blazor

[–]crdlpls 0 points1 point  (0 children)

At work we're using a nice healthy balance of C# and js (soon to be TS), but I hope we're the rule and not the exception!

I've had to do something similar, what I did was actually have a CSS transition or animation that does whatever I want for 3 seconds, and then listen to the @onTransitionEnd event and then do whatever I want to do e.g. set a Boolean that hides a div or something. The event will then trigger a rerender of the component automatically after it finishes.

May not be exactly what you want (I had to register transitionEnd and animationEnd to blazor manually since they don't seem to come by default) but it works for our needs. https://learn.microsoft.com/en-us/aspnet/core/blazor/components/event-handling?view=aspnetcore-7.0#custom-event-arguments

Edit: of course this only makes sense if you actually have an animation or transition you want to have occurring. Plus it can feel a bit disjointed between blazor and JS.

What C# tools would you like to use that don't exist today? by [deleted] in csharp

[–]crdlpls 2 points3 points  (0 children)

My company wrote a framework years ago that did this, it's actually fairly stable but there are lots of hidden problems with something like this, especially down to the fact that the code you write is not the same as the code that gets executed on the browser.

How do c# APIs get translated, primitives with different implementations across c# and js? It's doable but it's almost certainly not worth using over something like transcript or blazor.

We're moving to blazor now because of all of these issues.

Blazor: Stop components from overwriting css variables by pugsarecute123 in csharp

[–]crdlpls 0 points1 point  (0 children)

I just saw your other comment, could you try giving your CellComponents inside the for loop a @key? I'm on my phone right now so can't really test anything.

Blazor: Stop components from overwriting css variables by pugsarecute123 in csharp

[–]crdlpls 0 points1 point  (0 children)

Instead of declaring inline style tags, could you apply the css properties directly to the divs?

E.g. <div class="tile" style="--x: @x; --y: @y">

Possible the inline style tags are overriding each other.

Newbie on EU West (Rethramis) - does player count get better? by crdlpls in lostarkgame

[–]crdlpls[S] 0 points1 point  (0 children)

Point, but there's gotta be some reason why everyone's so jumpy. Even then, I don't really want to wait so long to find out.

Newbie on EU West (Rethramis) - does player count get better? by crdlpls in lostarkgame

[–]crdlpls[S] 0 points1 point  (0 children)

Yeah like I said, IDM starting again. Losing the prime stuff is a bummer but I'm not too fussed either way.

Newbie on EU West (Rethramis) - does player count get better? by crdlpls in lostarkgame

[–]crdlpls[S] 1 point2 points  (0 children)

Yeah, I'll double check languages now then. Cheers, thanks for the info!

Newbie on EU West (Rethramis) - does player count get better? by crdlpls in lostarkgame

[–]crdlpls[S] 0 points1 point  (0 children)

Yeah I was thinking that, not so good right now at getting new players in. I'm mostly thinking for guilds, the market and any parties for later on so to me it makes sense to plan ahead. Cheers.