In my app I have a screen which acts as a loading screen and verifies that information is retrieved correctly from the server.
For example here is a very simplified version of the OnVisible:
UpdateContext({LoadingText:"Searching for your name..."});
Set(
_UserProfile,
Office365Users.MyProfile()
);
If(
!IsBlank(_UserProfile),
Navigate(MainMenu_Screen,None),
UpdateContext({LoadingText:"Failed to load your profile. Please restart the App"})
)Having this function I get red line under Navigate which reads like this:
Navigate cannot be used here since it would always navigate away from this screen.

This error makes no sence since it would always navigate only if the IF condition is true. Can this limitation be removed please?
Work around
There is a simple workaround with using a button or any other control with OnSelect property and calling the Select(YourButton) to execute the Navigate() function.
For example, add a button and change its OnSelect to:
Navigate(MainMenu_Screen,None)
Now in the OnVisible property change your code to this:
UpdateContext({LoadingText:"Searching for your name..."});
Set(
_UserProfile,
Office365Users.MyProfile()
);
If(
!IsBlank(_UserProfile),
Select(Button1),
UpdateContext({LoadingText:"Failed to load your profile. Please restart the App"})
)Now it works as intended but you had to create some extra controls.