Fast Refresh
Web Fast Refresh
The Hosanna web app is powered by Vite, which provides instant hot reload for rapid development.
Note: Fast refresh requires that struct files are generated and up-to-date.
When you run the [WEB] launch target, it automatically starts the struct generator in watch mode to keep your codebase in sync.
Device Fast Refresh
Fast refresh is supported on device targets that can reload the active app bundle without a full compiler/package cycle, including Android TV, Samsung TV, iOS, Android, and Web-based device targets.
Roku and Apple TV are the main exceptions. On those targets, Hosanna provides launch targets that skip the Hosanna Compiler step and simply redeploy the last compiled code. This makes redeployment much quicker even though true device fast refresh is not available there.
Tips for Rapid Debugging on Device
- Use fast refresh where the platform supports it.
- On Roku and Apple TV, use launch targets that skip compilation for faster turnaround.
- Insert native log statements (
console.log, etc.) to quickly trace execution. - You can hand-edit the compiled
.brscode directly for ad hoc debugging. - Combine with telnet or manual sideloading for even faster cycles.
This workflow helps you iterate and debug efficiently across device targets while keeping the Roku and Apple TV exception paths explicit.