Keep InitialComponent reference in ProxyComponent
Open
- Dominant language
- JavaScript
- Stars
- 453
- Forks
- 43
- PR merge metrics
- No merged PRs in 30d
Description
According to issue https://github.com/gaearon/react-hot-loader/issues/304, I'd like to propose adding a `__original` property to the ProxyComponent which keeps a reference to the InitialComponent. So that we can compares element by type:
```javascript
import MyComponent from './MyComponent';
element.type === MyComponent || element.type.__original === MyComponent;
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.