Inferno: Hot module replacement ?

Created on 23 Jan 2017  路  11Comments  路  Source: infernojs/inferno

Is it possible to have hot module replacement with Infernojs and webpack ?

I cloned a bunch of repo who provide a starter project, they all claim to have hot module replacement, but none of them have a working solution.

feature request question

Most helpful comment

I started implementing Inferno-hot-reload tool similar to React-hot-reload to get this feature finally into Inferno. Once its ready and tested. It will land into create-inferno-app. The plan is to provide new option into Inferno core to ignore all SCU calls options.ignoreSCU then we can re-render the application from the root by just calling The render method again. Rest of it will work same way as React-hot-reload.

All 11 comments

Hi @antid0te did you try https://github.com/infernojs/create-inferno-app
What issue are you having exactly?

In inferno HMR works webpack native way not React way. If you are interested in React way that module could be ported to Inferno.

Yes i tried it, but when i make a change, the whole page is refreshed.

@antid0te looks like currently HMR work only with CSS. If you change JS, whole page needs to be refreshed.

@kurdin thats how I understood it also. @antid0te if you are interested in that React like behavior maybe you could port that package to Inferno?

Added this into POST 1.0 roadmap
https://github.com/infernojs/inferno/issues/628

@Havunen Has this been integrated into inferno?

@IgnusG I dont think so, somebody could port it.

@Havunen Could you reopen the issue?

Sure, but its not so relevant to main Inferno repository

I started implementing Inferno-hot-reload tool similar to React-hot-reload to get this feature finally into Inferno. Once its ready and tested. It will land into create-inferno-app. The plan is to provide new option into Inferno core to ignore all SCU calls options.ignoreSCU then we can re-render the application from the root by just calling The render method again. Rest of it will work same way as React-hot-reload.

@Havunen Did you have any success with this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

vinej picture vinej  路  24Comments

aprilmintacpineda picture aprilmintacpineda  路  22Comments

kanzelm3 picture kanzelm3  路  35Comments

davedbase picture davedbase  路  47Comments

kurdin picture kurdin  路  28Comments