gaearon / gaearon/react-proxy

Keep InitialComponent reference in ProxyComponent

Open
#68 2 comments 4 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.