Product: PowerShell Universal Version: 1.5.18
Just wondering if someone knows of a good way to display a loading modal while a page is loading and only hide it after all the external data calls have finished (like data for tables).
At the moment I have a loading modal which is ok, and as the last line in the .ps1 for the page a Hide-UDmodal. This works but sometime if the calls out to SQL are a bit slow, the modal hides and displays nothing where the tables are meants to be, and then a cpl of seconds later they populate as the data from the SQL calls is returned (these are called via external functions, the data coming back in a $cache:VarName variable)
Someone may have a good way to set a wait variable or something so as to only hide the loading modal once all the $cache:VarName variables are populated.