Skip to content

childrenOfType incompatible with projects using react-hot-loader #39

Description

@liuhelen10

childrenOfType is currently incompatible with projects using react-hot-loader because of this line:

https://github.com/airbnb/prop-types/blob/master/src/childrenOfType.js#L8

According to the react-hot-loader docs, because React Hot Loader creates proxied versions of your components, comparing reference types of elements won't work. It looks like they provide an areComponentsEqual helper that checks for that (more details here), but I'm not sure if there's a good way to integrate with this.

It looks like there is an open issue on react-hot-loader about this -- curious if you guys have any ideas for a solution or workaround: gaearon/react-hot-loader#304

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