Open jods4 opened 7 years ago
Interesting. Any thoughts on how to correct this?
Unfortunately no.
I have not debugged where app
gets loaded and why it doesn't go through the normal code path.
Then for the app.html
weird behavior, I must admit I don't fully understand yet what the aurelia HMR module does, so no idea what happens here.
This is where app
is inferred when no root is specified: https://github.com/aurelia/framework/blob/d650b01993aa2db81f8c9587793b73b2d1f0476d/src/aurelia.js#L133
@jods4 maybe can be closed?
@Alexander-Taran was there a fix for that?
@jods4, sir. Can't know sir. I'm asking you (-: Maybe it was resolved and you are already happy?
Nothing that I know of.
My application root is by convention
app
. It starts like this:aurelia.start().then(() => aurelia.setRoot());
I noticed that
app
is not loaded through any of themodule.hot.accept
paths inaurelia-loader-webpack
and hence does not support HMR. Changing code inapp.ts
triggers a full reload.app.html
on the other hand goes throughmodule.hot.accept
and triggers a hot reload, but the view is only updated the very first time. After that, it still triggers a hot reload but the view is not updated anymore. I don't have that problem with other views, they refresh fine.