I am working on an app in ionic 3 and when doing the login you must load several variables in the localStorage to use in the home, the problem I have is that after passing the login it enters the home quickly and does not load anything because the variables in the localstorage take a second or two to register and when executing the functions in the home, nothing is brought from the localstorage.
What can I do to avoid going to the home if the variables have not yet been loaded by the system.