Skip to content

allow null elements from render methods #30

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

Merged
merged 1 commit into from
Oct 2, 2015
Merged

Conversation

jdeal
Copy link
Contributor

@jdeal jdeal commented Sep 23, 2015

If you wrap a component that sometimes returns null in its render (which is perfectly valid), then linkClass will choke when it tries to get element.props when the component is rendering null. This truthy check fixes that.

gajus added a commit that referenced this pull request Oct 2, 2015
allow null elements from render methods
@gajus gajus merged commit 9a1450b into gajus:master Oct 2, 2015
gajus added a commit that referenced this pull request Oct 2, 2015
@gajus
Copy link
Owner

gajus commented Oct 2, 2015

This has been added in version 3.4.0, c268a18.

@jdeal
Copy link
Contributor Author

jdeal commented Oct 2, 2015

Thanks!

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.

2 participants