Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Possible to use @connect functionality without wrapping it in a new component? #8

Closed
thdxr opened this issue Jul 22, 2015 · 1 comment

Comments

@thdxr
Copy link

thdxr commented Jul 22, 2015

This isn't a common use case but the connect decorator breaks the case when a parent component needs to call a child component's functions as documented here: https://facebook.github.io/react/tips/expose-component-functions.html

I agree it's better to handle these situations using flux or props but was curious to see whether or not this incompatibility can be avoided.

@gaearon
Copy link
Contributor

gaearon commented Jul 31, 2015

We've decided to expose a way to access the instance (via a getUnderlyingRef() method). This will be in our API revamp from #16.

@gaearon gaearon closed this as completed Jul 31, 2015
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants