Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep InitialComponent reference in ProxyComponent #68

Open
yesmeck opened this issue Jan 3, 2017 · 2 comments
Open

Keep InitialComponent reference in ProxyComponent #68

yesmeck opened this issue Jan 3, 2017 · 2 comments

Comments

@yesmeck
Copy link

yesmeck commented Jan 3, 2017

According to issue gaearon/react-hot-loader#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:

import MyComponent from './MyComponent';

element.type === MyComponent || element.type.__original === MyComponent;
@afc163
Copy link

afc163 commented Jan 10, 2017

+1

1 similar comment
@qingo
Copy link

qingo commented Jan 19, 2017

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants