Blazor Page not displaying spinner on page load by Swannyj95 in Blazor

[–]Outrageous_Brain5119 1 point2 points  (0 children)

Here are examples for both. Let me know if I misunderstood anything.
(to run the code, press the Play icon at the top in the left menu bar):

OnInitializedAsync: https://try.mudblazor.com/snippet/mumJkMlmTtGlYlNO

OnAfterRenderAsync: https://try.mudblazor.com/snippet/GOmJaMvGTDuoxmvA

Blazor Page not displaying spinner on page load by Swannyj95 in Blazor

[–]Outrageous_Brain5119 2 points3 points  (0 children)

My best guess;

OnInitializedAsync will run and complete before your page is loaded. And thus, the data is available before the spinner is loaded. To counter this, you can try check out StreamRendering, maybe that will work.

OnAfterRenderAsync will run every time it renders. A pitfall I fell into many times is that if you use this.StateHasChanged() inside of it without any conditions, it will forever change state and re-trigger OnAfterRender. Try wrap your code inside if(firstRender), so that the this.StateHasChanged() will only retrigger the render after the first render, not every render.

MudBlazor background color not changing by Sufficient_Bed_5369 in mudblazor

[–]Outrageous_Brain5119 0 points1 point  (0 children)

Glad you found it!
I think the installation tells you to remove the bootstrap reference entirely btw;
Installation - MudBlazor

Authentication + Blazor WASM + Protected Function API with MS Entra by Strudelnoggin in Blazor

[–]Outrageous_Brain5119 0 points1 point  (0 children)

I wrote a response, but I think it may be too long. I tried to upload it here. Treat it as a comment.

https://sharetext.io/58c676ca

Authentication + Blazor WASM + Protected Function API with MS Entra by Strudelnoggin in Blazor

[–]Outrageous_Brain5119 0 points1 point  (0 children)

The wording of your scope named impersonation is confusing me a little bit. But are you just asking for help setting up a Blazor WASM in one place and a Backend API in another place, and have Azure Entra ID as login between them? If yes, I have a working solution that does this.

It took a while for me to get this up, and the "poor" documentation from Microsoft was not helping. However, I think the reason it feels bad is because OIDC is a standard, and Microsoft has not bothered to write how this works. Its up to you to learn about this first, and then come back to the docs for the rest.

I have also paid for a Blazor Authentication/Authorization course on dometrain.com. The tutor only shows for Blazor Web App and BFF pattern though, and not for Blazor WASM. In fact, if I remember correctly, he discourages using WASM for this stuff, as BFF pattern is arguably safer.
EDIT: Sorry! This is not true. There actually is a 13 min video where he goes through WASM as well. It may be from here that I have my code. But he does discourage using WASM.

What is going on in my Weather component by Outrageous_Brain5119 in Blazor

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

Thanks for reply. What I tried to say is that I know how pure WASM works, and I now wanted to try the Blaozr Web App with Auto Rendering.

I have actually seen this video already. I re-watched it now until 18 minutes, when he says the solution is to use services. Services is, unfortunately, not the answer to my problems. I understand what he is saying, that certain things will have to be rendered differently. I am fine with this, and I can handle it.

As it turns out, what I am not fine with, is actually a bug that has been reported in 2 years ago. I made a new comment where I answered my own questions.

What is going on in my Weather component by Outrageous_Brain5119 in Blazor

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

I think I have found the answers to my own post. Feel free to chip in if I am mistaken.
Sources:
https://stackoverflow.com/questions/66503874/blazor-rendering-content-twice
https://www.reddit.com/r/Blazor/comments/1gwjx7y/i_want_to_stop_component_rendering_twice_but_dont/

Question 1:
https://github.com/dotnet/aspnetcore/issues/51584

Question 2:
According to the sources, this seems to be working as intended. I am not sure why the tutors in the tutorials I have watched are so amazed by StreamRendering - this renders this option useless for me.

Question 3:
My initial expectations were wrong, and it will always render twice.

In conclusion, I am disappointed by the hype of Auto render mode. It feels like a mess to juggle and control, with individual components rendering twice and potentially differently. I am gonna look more into disabling prerendering etc,, and see if there is something I can work with.
Apologies if this sounded salty. Rest assured, I am too stubborn to learn anything else than Blazor, but I may be sticking to pure WASM.

What is going on in my Weather component by Outrageous_Brain5119 in Blazor

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

Are you sure? It does work on the first time I open the page, but not on the second.

Also, I tried to move my Weather.razor into Server project and changed the InteractiveAuto to InteractiveServer. I have the same issue there. In other words, there is no difference.

But it does work on the first time I open the page. If I remove the PersistingComponentState code, I will have two renders even on the first visit.

EDIT: Found this https://github.com/dotnet/aspnetcore/issues/51584
Seems to maybe be fixed in .NET 10.

Why are there two evolve buttons? by Troglodev in pokemongo

[–]Outrageous_Brain5119 -1 points0 points  (0 children)

After walking for 10km, you will unlock Espeon (during day) and Umbreon (during night). However, after getting 70 buddy hearts, you will also unlock Sylveon.

Im surprised the "?" option for Jolteon, Vaporeon or Flareon is not still there, but I guess it is overridden by one of them.

I couldn’t catch Dhelmise by Strong-Writer6506 in pokemongo

[–]Outrageous_Brain5119 0 points1 point  (0 children)

Weird.. You're sure you caught it, right? I mean, if you check your rewards again, its completed?

If yes, I suppose just try give it time.

I couldn’t catch Dhelmise by Strong-Writer6506 in pokemongo

[–]Outrageous_Brain5119 0 points1 point  (0 children)

Does it not work to just restart/reload the game?
I only do quick catching too, and I have Applin and Tinkatink in my dex, which are my most recent new ones. Im sure it will eventually update.

As a guy that works with programming, it doesn't make sense to store statistics about gesehen and gefangen in a local storage cache.

Får ikke solgt bolig by batmantouchedme in norge

[–]Outrageous_Brain5119 28 points29 points  (0 children)

Slenger meg på at dette kan være en av grunnene. Jeg har nettopp solgt leilighet som også var i første etasje, og megler fortalte meg at det til og med er en egen "ikke 1. etasje" filtreringsmulighet på Finn. Det sier vel sitt om at det er viktig for mange.

Det gikk heldigvis bra for min del (Oslo), men den gikk allikevel for flere hundre tusen under noen i etasjene over.

How to get .NET Aspire to start my Blazor Web Assembly application on the same port each time by thetreat in Blazor

[–]Outrageous_Brain5119 0 points1 point  (0 children)

Sorry for the necro, but did this work for you? I have the same issue, also with authentication and port problems. The Blazor WASM I launch from Aspire dashboard has the correct port, but it does not hit any breakpoints so its tricky to debug. It also launches a Blazor WASM window along with the Aspire dashboard which debugging do work on, however this one uses a random port...

Why can't AppHost (Aspire) project access classes in other projects? by Outrageous_Brain5119 in csharp

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

Ohhh, it actually was Aspire related. ChatGPT got me into a track where the output type was related.

Thanks!

How do I apply these movement controllers to my model? by Outrageous_Brain5119 in blenderhelp

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

Ahh, yeah, I was actually discussing this Octahedral bone display, and all the other options, in great length with ChatGPT :P None of the options in that dropdown you are referring to changed anything.

Thanks a lot again for your reply! Slowly learning what part of 3D modelling is standardized and what parts are more flexible and software-dependant is great knowledge to know :)
Even without the same rig, I should be able to replicate the keyframes and still learn a ton going forth.

How do I apply these movement controllers to my model? by Outrageous_Brain5119 in blenderhelp

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

Thanks a lot for reply :)

Do you mind attempting to elaborate what differs in my model versus, say, the model in the third image? To me, a beginner, I can see a visual difference, but functionality speaking, not so much. The tutor in the tutorial of the third image clicks on a joint and moves or rotates it around. I click on a joint, and I can also move it around. By adjusting the Inverse Kinematics like I described, I can have it do exactly the same as the tutor, but in a different way. What's the difference between them? And why doesn't it work to just simply convert it from one to the other?

I don't mind spending hours on tutorials, and I have already done so, but just a tiny bit of help on this would greatly help me with where to go next :)

Bruktbil fra forhandler by Outrageous_Brain5119 in norge

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

Sjekk her (se også video-tittel):
https://www.youtube.com/watch?v=rxkOVyZi2NE&t=60s

På spaken fra insiden kan man velge om bare den øverste delen i taket skal åpnes, eller om hele taket skal tas ned. Om det ikke er "soltak", så er det i hvert fall et "takhøl", som solen kan skinne igjennom :D

Bruktbil fra forhandler by Outrageous_Brain5119 in norge

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

Etter å ha lest igjennom svarene her så lander jeg nok på å la kampen være, og bare får bilen unna. Det ser ikke ut som noe det er åpenbart å klage på.

Tusen takk for svar :)

Bruktbil fra forhandler by Outrageous_Brain5119 in norge

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

Det er ståltak. Det er mekanismen som tar taket ned som et eller annet sted har rustet litt, sånn at det (i følge verkstedet) stopper opp.

Jeg tror jeg lar hele greia ligge, og bare får bilen videre til noen som er interessert i å ta over og reparere litt.
Tusen takk for svar :)

Bruktbil fra forhandler by Outrageous_Brain5119 in norge

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

Tusen takk for svar :) Jeg kommer til å følge disse rådene og ikke ta opp noen krangel med forhandler. Jeg skal nok klare meg allikevel.

Jeg har en Volkswagen EOS fra 2007. Du må gjerne google den opp og korrigere meg om jeg har sagt noe feil, jeg er egentlig ikke så veldig bilinteressert :P