Skip to content

Commit

Permalink
Shimmed function components transmit this context [fix]
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Feb 10, 2019
1 parent f15a512 commit 3980726
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ class PartialRenderer extends ReactDOMServerRenderer {
} else {
// Function component
shimmedComponent = function(props, context, updater) {
return render(Component, null, props, context, updater);
return render(Component, this, props, context, updater);
};
Object.assign(shimmedComponent, Component);
}
Expand Down

0 comments on commit 3980726

Please sign in to comment.