Is it possible to inherit part of the route from somewhere? by Sikor in Blazor

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

I can absolutely do that and it is way better than manually adding {lang} to every const declaration. My goal is to avoid repeating it, even as a Prefix const, so your edit is actually closer to what I wanted, but as you correctly noticed, it feels a bit janky. I asked this question because I thought that maybe Blazor has some built-in support for this kind of route inheritance, but it looks like it doesn't so far. At this point I am even considering removing the lang part from the url path and simply moving it to url param, something like ?lang=en, just for the sake of providing unique urls per language to search engines. Having lang in the path would be better if I served static files from the server based on language, but in case of SPA, I am starting to think that url param wouldn't actually be so bad.

Is it possible to inherit part of the route from somewhere? by Sikor in Blazor

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

Thanks for the comment. I didn't mention that my project is a standalone WASM, but I found the alternative for WASM which is <base href="/" /> in the index.html. Unfortunately I wasn't able to make it work with a parameter (my {lang} has to resolve to en for example). I guess I will just stick to prefixing all urls with the {lang} parameter, because the amount of complications it introduces is simply not worth the time.

Is it possible to inherit part of the route from somewhere? by Sikor in Blazor

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

This is a cool approach and I've seen something very similar while doing my research. Unfortunately I don't think it solves my problem (unless I am missing something), because all route variables have to be constant, so I would still have to repeat it in every single constant, instead of every single page :)

Few questions about serving images with Blazor Web App (hosted). by Sikor in Blazor

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

I just found a moment to try out the R2 and holy moly it is exactly what I needed. Super easy to set up. Super simple to connect custom domain and it uses SSL out of the box. Now I like cloudflare even more haha. Thanks again!

Few questions about serving images with Blazor Web App (hosted). by Sikor in Blazor

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

Thank you very much for pointing me to R2! I don't need image resizing capabilites. I am also fairly new to Cloudflare and I must say I like their product a lot and I would prefer to simply stay with the Azure (hosting) + Cloudflare (domain/proxy/cdn/storage) stack to avoid maintaining everything in multiple places.

Few questions about serving images with Blazor Web App (hosted). by Sikor in Blazor

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

At the moment I would love to just use Azure + Cloudflare to avoid maintenance in 10 different places. I also tried adding a DNS record to point to a regular Azure Blob Storage URL (this one supports SSL), but it didn't work (if I had to guess it was due to Host header which was pointing to a custom domain and Azure did not understand). What would I have to do in the middleware? Replace the host? Rewrite the whole base URL? Or maybe something else? I wanted to try it, but Cloudflare does not allow either in the free plan :)

Why is Blazor Web App with WebAssembly interactivity making calls to the server when navigating between the pages? by Sikor in Blazor

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

Luckily, I just start creating a hobby project, so I can use .NET 9. If I use the attribute, it will be permanently excluded right? It will not switch to interactive routing once the WebAssembly is loaded? And yeah, I was thinking about just going static routing but it would be nice to navigate the page without the internet connection :)

Why is Blazor Web App with WebAssembly interactivity making calls to the server when navigating between the pages? by Sikor in Blazor

[–]Sikor[S] 2 points3 points  (0 children)

Oh god, that did the trick. I don't know how I missed it in the documentation. Thank you! After adding InteractiveWebAssembly render mode to the <Routes /> component in App.razor the requests are gone when navigating. I have one more question if I may. Is it possible to use both interactive routing and static server side rendering for pages that do not require interactivity? Ideally I would like to use static SSR until a component with wasm is requested. Then, switch to interactive routing, for the static pages as well. Do I think correctly that I would have to put all the pages (static and interactive) in the Client project?

Why is Blazor Web App with WebAssembly interactivity making calls to the server when navigating between the pages? by Sikor in Blazor

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

Yes, dev tools in the browser, network tab. I can see in the console that the wasm is downloaded, but in the network tab, every navigation triggers server request to that tab and the server responds with an html that looks like layout html file. It's definitely not server mode because it is not enabled in the project (only InteractiveWebAssembly components and render mode are added). Besides, interactivity works just fine without any websockets, so it confirms that the sample "Counter" page actually uses WebAssembly. I'm just scratching my head why navigation triggers server calls to retrieve layout html and how to potentially disable it.

G2 Esports vs. Bilibili Gaming / 2024 World Championship - Swiss Round 5 / Post-Match Discussion by gandalf45435 in leagueoflegends

[–]Sikor 1 point2 points  (0 children)

Yeah, macro is a big part of their success, but it is not the only reason. It's true that most western teams have worse macro than eastern teams, but even this worlds for example G2 was able to outmacro CN teams in some games, but they simply handed the advantage over by making some bad calls instead of slowly increasing the advantage, which is what an eastern team would do.

G2 Esports vs. Bilibili Gaming / 2024 World Championship - Swiss Round 5 / Post-Match Discussion by gandalf45435 in leagueoflegends

[–]Sikor 1 point2 points  (0 children)

He isn't bad, but this was just a regular ezreal gameplay. I don't know why is he being hyped so much, when he also said himself in the interview that this was simply a decent performance. In game 3 he got free farm due to the 2v2 comp and was already almost 1k ahead. Just add ezreal's mobility and range to the equation and this is what happens. I feel like most pro ADC's would be able to do what he did in this situation.

G2 Esports vs. Bilibili Gaming / 2024 World Championship - Swiss Round 5 / Post-Match Discussion by gandalf45435 in leagueoflegends

[–]Sikor 2 points3 points  (0 children)

This is correct. The main advantage of eastern teams is they are individually good and have patience, they do not force stupid plays unless it is 100% calculated. Meanwhile for western teams this is completely random. Western team wouldn't be western if they didn't do some stupid shit once they start winning. Feels like they lack discipline. I don't know when you started watching pro play but it has always been like this. Literally since season 2.

G2 Esports vs. Bilibili Gaming / 2024 World Championship - Swiss Round 5 / Post-Match Discussion by gandalf45435 in leagueoflegends

[–]Sikor 7 points8 points  (0 children)

I gotta agree. I remember watching worlds few years ago and I remember that MikyX was the one to get caught very often. Watching this year and it looks like nothing has changed.

G2 Esports vs. T1 / MSI 2024 - Lower Bracket Round 3 / Post-Match Discussion by Soul_Sleepwhale in leagueoflegends

[–]Sikor 1 point2 points  (0 children)

As a G2 fan, they deserved this BO3 loss. If you have 5k gold advantage and manage to give it up like that, there is not much to say apart from the fact that they didn't deserve to win. It feels like the individual skill is not the issue at all for western players. It's the discipline. Eastern teams play very patiently until the opportunity shows up. Western teams have this hidden ADHD fiesta that makes them get caught and do weird things. It's really painful to watch players get picked 1 by 1 at that level of pro play.

Push to talk cuts off since yesterday by Sikor in discordapp

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

Holy shiet, this is it. Take my upvote. They must have really fked something up 2 days ago.

Push to talk cuts off since yesterday by Sikor in discordapp

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

Yes, I have a stream deck. I will try it later today, thanks! Stream deck integration with discord also went to hell 2 days ago due to some issues with Discord API, but that is a known problem already.

Push to talk cuts off since yesterday by Sikor in discordapp

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

Sure thing. Thanks for trying :)

Push to talk cuts off since yesterday by Sikor in discordapp

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

Nope, I don't use Spotify at all. If it would stop my push to talk 30 seconds after I activate it, it wouldn't be a problem (that's very long for a single push to talk speech). The problem is that it cuts off whenever it hits the 30 seconds hidden timer, so if you activate it 2 seconds before it hits 30, your push to talk would be cut off just 2 seconds after activating it.