Skip to content

Client-side hot module replacement does not work #970

@salehhamadeh

Description

@salehhamadeh

If you modify a file while react-server is running with hot: true, the server updates the file and the client receives the updated file (can be seen in the browser console), but the new component is not used. This broke down when we upgraded react-hot-loader to v3. We had to do this because react-hot-loader v1 depended on ReactMount, which is no longer supported in React 16. The new version of react-hot-loader requires us to tell a component how to render itself. This is shown in "Step 2: Using HMR to replace the root component" on react-hot-loader's Getting Started page http://gaearon.github.io/react-hot-loader/getstarted/

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue with the system

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions