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
childrenOfTypeis currently incompatible with projects usingreact-hot-loaderbecause of this line:https://github.com/airbnb/prop-types/blob/master/src/childrenOfType.js#L8
According to the
react-hot-loaderdocs,because React Hot Loader creates proxied versions of your components, comparing reference types of elements won't work. It looks like they provide anareComponentsEqualhelper 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-loaderabout this -- curious if you guys have any ideas for a solution or workaround: gaearon/react-hot-loader#304