Fast Refresh and Native Hot Reload
Browser Fast Refresh
The Hosanna browser emulator is powered by Vite. When you run
npx hst run browser dev emulator, HST starts or reuses Vite, generator watch, and
debugger services. Generated struct files must remain current.
Device Fast Refresh
Use the web simulator for fast iteration. Build and deploy the native application to Roku to verify device behavior.
Without --hot-reload, native runs use the bundled JavaScript/assets path.
This is the release-like mode and the default.
Use the web simulator for fast iteration. Build and deploy the native application to Roku to verify device behavior.
Roku does not load the TypeScript bundle from the native hot-reload server.
After a successful compiler build, --no-build can redeploy already-generated
output:
npx hst run roku dev device \
--no-build \
--source-root platforms/roku/src \
--device "Living Room Roku"
Use the web simulator for fast iteration. Build and deploy the native application to Roku to verify device behavior.
Tips for Rapid Debugging on Device
- Use browser HMR for most shared view/config changes.
- On Roku, use
npx hst run roku dev device --no-build --source-root platforms/roku/srcafter a successful build when you only need to redeploy the generated package. - Treat edits to generated
.brsas disposable diagnostics. Apply the real fix in TypeScript and rebuild. - Validate native services, packaging, lifecycle, input, and rendering on the actual target even when the browser result is correct.