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

HMR hotfix #292

Merged
merged 2 commits into from
Nov 21, 2017
Merged

HMR hotfix #292

merged 2 commits into from
Nov 21, 2017

Conversation

krizzu
Copy link
Contributor

@krizzu krizzu commented Nov 21, 2017

HMR would thrown an error when it finds registered function that is on a prototype. With this patch, we just make sanity check if function is on Object.prototype, if so, it's not a component.

@jukben
Copy link
Contributor

jukben commented Nov 21, 2017

Great! Maybe it would be nice if you could spare few words as a comment to explain in code what's going on. Anyway GJ! Let's get merge it.

zamotany
zamotany previously approved these changes Nov 21, 2017
@zamotany
Copy link
Contributor

Let's add some comment as @jukben said.

@krizzu
Copy link
Contributor Author

krizzu commented Nov 21, 2017

Done, I hope that's explained enough

zamotany
zamotany previously approved these changes Nov 21, 2017
@satya164 satya164 merged commit da0f752 into master Nov 21, 2017
@satya164 satya164 deleted the krizzu/hmrHotFix branch November 21, 2017 16:22
@krizzu
Copy link
Contributor Author

krizzu commented Nov 21, 2017

Ah, typos :p

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

Successfully merging this pull request may close these issues.

4 participants