Blazor – WebAssembly .. OnInitializedAsync run twice
Hi all,
I’m having trouble with OnInitializedAsync. I have a BLAZOR frontend microservice. when a page is called I see OnInitializedAsync runs twice…. this happens on dev machine.
is this standard behaviourwith WASM?
If I check deployed app on f12 I see 1 call ( Why?)
Can anyone give me more info about this behaviour?
Every where they talk about server … It makes me confused and stunned.
I’ve found a workaround with a variable to manage if it is first or second execution.
I hope someone can help me.
TIA
Dario
Hi all, I’m having trouble with OnInitializedAsync. I have a BLAZOR frontend microservice. when a page is called I see OnInitializedAsync runs twice…. this happens on dev machine. is this standard behaviourwith WASM? If I check deployed app on f12 I see 1 call ( Why?)Can anyone give me more info about this behaviour? Every where they talk about server … It makes me confused and stunned.I’ve found a workaround with a variable to manage if it is first or second execution.I hope someone can help me.TIA Dario Read More