When a user logs in the user is prompted to make selections after login.
I take these values and place them into a global variable.
This works fine until page refresh as they are then cleared.
So I place the values into ProtectedLocalStorage and i have a method that gets the values from the ProtectedLocalStorage and repopulated the global variables.
However they often not available to the UI or other getData operations. I am running the method in a service.
How would i force the UI etc to update from within this method.
Once you've finished reading the data from the local storage and the global variables are set you can call StateHasChanged() to refresh the UI. You can also hide/disabled various parts of the UI if something is not yet available.