-
Notifications
You must be signed in to change notification settings - Fork 46.8k
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
Add boilerplate to compose refs #13782
Comments
@pronebird checkout #13029, specifically @gaearon's comment. This is the recommend approach in this case, though this pattern shouldn't be used frequently. |
Hi @aweary, |
@aweary while the comment you've mentioned is a solution, there is still a problem with it. When using TypeScript the Folks make their own homegrown |
Do you want to request a feature or report a bug?
feature
What is the current behavior?
Currently there is no way to compose
refs
. I.e I have a situation when I hook up a ref from multiple components via context, because one of the components needs to calculate the layout and the other ref is passed by the consumer.Here is a little snapshot:
What is the expected behavior?
I expect that React would provide a way to compose
refs
so that consumer wouldn't have to dive into runtime implementation details and reimplement what React already does.The text was updated successfully, but these errors were encountered: