capaj / jspm-mithril

Mithril.js boilerplate with hot reloading modules
MIT License
14 stars 1 forks source link

Does not work when using m.route() instead of m.mount() #1

Closed JoeLanglois closed 8 years ago

JoeLanglois commented 8 years ago

Hey there, thanks for the starter-kit. Unfortunately, when using m.route(elem, default, routes), the hot-reloading just stops working.

The files are reloaded but it has no effect on the page.

Any idea how to fix this?

capaj commented 8 years ago

@JoeDRL for react-router, we have to use this special render-forcer: https://github.com/capaj/jspm-react/blob/master/public/app.js#L15

I suspect something similar can be made for mithrill.

capaj commented 8 years ago

@JoeDRL fixed in 440f55bd

JoeLanglois commented 8 years ago

Great! Thanks