Skip to content

Conversation

@leidegre
Copy link

A very simple solution to the issue discussed in this pull request #58

@wkwiatek wkwiatek changed the base branch from next to master March 6, 2017 09:04
return instantiate(() => CurrentComponent, this, arguments);
};
}
ProxyComponent = function DynamicProxyComponent() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add some tests to show what problem it solves?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's useful for HOCs to wrap the displayName of the base component, for example HigherOrderComponent(BaseComponent). This is not a valid function name however, which causes unnecessary errors to be thrown.

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.

3 participants