HMR works well for modules that exist at startup, but when adding a new route controller, model, and views during development, the app has to be restarted to import them into the app scope and make them available to the framework. Import them dynamically upon creation instead so they're available without restarting.
HMR works well for modules that exist at startup, but when adding a new route controller, model, and views during development, the app has to be restarted to import them into the
app
scope and make them available to the framework. Import them dynamically upon creation instead so they're available without restarting.