Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App entry point #9

Open
jods4 opened this issue Dec 22, 2016 · 7 comments
Open

App entry point #9

jods4 opened this issue Dec 22, 2016 · 7 comments

Comments

@jods4
Copy link
Contributor

jods4 commented Dec 22, 2016

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 the module.hot.accept paths in aurelia-loader-webpack and hence does not support HMR. Changing code in app.ts triggers a full reload.

app.html on the other hand goes through module.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.

@niieani
Copy link
Contributor

niieani commented Dec 22, 2016

Interesting. Any thoughts on how to correct this?

@jods4
Copy link
Contributor Author

jods4 commented Dec 22, 2016

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.

@niieani
Copy link
Contributor

niieani commented Feb 5, 2017

@Alexander-Taran
Copy link

@jods4 maybe can be closed?

@jods4
Copy link
Contributor Author

jods4 commented Mar 15, 2018

@Alexander-Taran was there a fix for that?

@Alexander-Taran
Copy link

@jods4, sir. Can't know sir.
I'm asking you (-:
Maybe it was resolved and you are already happy?

@jods4
Copy link
Contributor Author

jods4 commented Mar 15, 2018

Nothing that I know of.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants