Auto Reload not working

I have a selfservice portal where the selfservice.ps1 declares the page below it by dot sourcing

$Pages = New-Object System.Collections.ArrayList
$Page = New-UDPage -Name 'User Manager'  -Content {
    . "$UDScriptRoot\Pages\UserManager.ps1"
} -Role Administrator, Team1
[void]$Pages.Add($Page)
Remove-Variable Page

I version 4, when I edited the child page “User Manager.ps1” directly in VsCode, the page got Auto Reloaded without me doing anything and it worked fine.

In version 5 the page is NOT auto reloaded and I have to refresh the page by hitting F5. Even when I refresh it manually some functions like a directorysearcher stops working.

The “top” page, Selfservice is auto reloaded as expected when I change it.

The auto reload feature is enabled in the configuration.

Is this a bug that the page is not auto reloading or am I missing something?


Product: PowerShell Universal
Version: 5.5.3

Ive noticed this recently myself. I never used v4 so wasnt sure if it was a bug or not, but now looking I see if I edit the file in the web ui it does reload but vscode not

personally I think this is a bug