Skip to content
This repository was archived by the owner on Aug 21, 2020. It is now read-only.
This repository was archived by the owner on Aug 21, 2020. It is now read-only.

React.PureComponent doesn't work with HMR #133

@Restuta

Description

@Restuta

I upgraded my existing React project to use official React.PureComponent and hot reloading stopped working. I know it's "no maintenance intended", so I will be happy to submit a fix, but I need a simple pointer from you @gaearon. I think the fix would be good until RHL 3 lands. I am surprised nobody raised this issue so far, nobody upgrades to official React.PureComponent?

I digged into code a little and see that proxyReactComponents doesn't get components that derive from React.PureComponent, not sure why. Can you please point me to right direction?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions