Skip to content

Commit

Permalink
Merge 4481f66 into 44547f3
Browse files Browse the repository at this point in the history
  • Loading branch information
arqex committed Mar 15, 2018
2 parents 44547f3 + 4481f66 commit 1fe991d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vdom/component-recycler.js
Expand Up @@ -25,10 +25,11 @@ export function createComponent(Ctor, props, context) {
}
else {
inst = new Component(props, context);
inst.constructor = Ctor;
inst.render = doRender;
}

// Always redefine the constructor to make it play nice with react-hot-loader proxies
inst.constructor = Ctor;

if (list) {
for (let i=list.length; i--; ) {
Expand Down

0 comments on commit 1fe991d

Please sign in to comment.