Skip to content
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

Proxy component: can't pass 'ref' #13

Closed
ghengeveld opened this issue Sep 28, 2016 · 2 comments
Closed

Proxy component: can't pass 'ref' #13

ghengeveld opened this issue Sep 28, 2016 · 2 comments

Comments

@ghengeveld
Copy link

ghengeveld commented Sep 28, 2016

It should be noted that it's not allowed to pass ref down through a proxy component. You could circumvent this by using a custom 'xref' prop that is manually bound to the underlying component's ref.

I'm using the proxy component pattern extensively in react-isomorphic-form.

Related discussion: facebook/react#4213

@chantastic
Copy link
Owner

this is noted in the second sentence. They don’t hold state or refs; they’re just functions.

how would you prefer it be noted?

@chantastic
Copy link
Owner

I'm going to leave this off for now.

The goal of this resource is "just the facts" and this concept is pretty advanced. Maybe a better fit for a more advanced target audience.

Thanks raising the issue!

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

No branches or pull requests

2 participants