Aura if and else provides conditional rendering. But this is what happening in my case. I have 2 version of my UI one is desktop and other is mobile. Which gets rendered using aura if and else :
aura if: true == my mobile flag Show mobile UI aura else attribute Show desktop UI
Now when the page loads final result is correct. But when the page is loading I can see else condition UI getting displayed even though am not able to access the screen and then finally based on the flag correct UI loads.
Now the flaw here is at the time when UI is loading and it is showing else UI regardless of flag, if i disconnect from network and make the page stop right there I will be able to see my else UI regardless of whatever value of flag is. Since there are links on the page which the user is not allowed when he is loading from mobile. But in case of network failure at the time of screen loads he may have access to those.
Does anyone has faced this kind of behavior ?