Sync-UDElement wait option

Product: PowerShell Universal
Version: 2.5.4

Product: Universal Dashboard
Version: 3.8.0

I’m utilizing a table within a UDDynamic and using a button to call Sync-UDElement and update the table. I’m also trying to use Invoke-UDJavaScript after the Sync to customize the table, but running into an issue where the Invoke command is running before the table has finished loading after the sync command.

Is there a way to wait for the sync command or for the table to finish loading before it continues to run the Invoke-JavaScript command?