os-js/OS.js

Improve application reloading in development mode

andersevenrud opened this issue · 0 comments

This was brought up in https://community.os-js.org/t/how-to-update-hot-reload-application/519/4.

The current implementation is not very reliable. Something in the chain fails (or does not happen), which currently is:

  1. Server watches the dist folder
  2. A change occurs and the watcher catches the file path
  3. This action is debounced
  4. A broadcast with the changed package name occurs
  5. The client retrieves the broadcast event and restarts the application by name