[Feature] Local Play should warn when the local dev server is down instead of failing silently #446
ranjith (ranjith7022)
started this conversation in
Ideas
Replies: 1 comment
|
Moving this to the Ideas section of Discussions as this is a feature request |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
When the Vite dev server stops while a code app is open through the Local Play URL, the app keeps running normally with no visual indication that anything changed. HMR is silently dead — edits no longer appear — so developers often don't notice until their changes "don't work." Refreshing during the outage shows only "We could not retrieve your app."
This is a common workflow interruption (dev server crash, accidental Ctrl+C, restart onto a different port that stales the saved Local Play URL), and today there's no out-of-the-box signal at any layer.
Environment
@microsoft/power-apps-vite1.0.2@microsoft/power-apps-cli1.0.0 (pa app run)Repro steps
pa app run, open the printed Local Play URLWhat would help
Any of the following would address it — happy with whatever the team thinks fits best in the platform:
vite:ws:disconnect/vite:ws:connect) and it works inside the Local Play iframe._localAppUrl/_localConnectionUrl, show an actionable message ("Your local dev server athttp://localhost:5173isn't reachable — restartpa app run") instead of the generic "We could not retrieve your app."pa app runso saved Local Play URLs don't go stale after a restart.Why it matters
[vite] server connection lost. Polling for restart...) effectively invisibleAll reactions