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

Use forwardRef to pass on the ref(#169) #182

Merged
merged 2 commits into from
Jul 22, 2021

Conversation

chinmaychaudhary
Copy link
Contributor

@chinmaychaudhary chinmaychaudhary commented Apr 7, 2020

For a Component that is wrapped with withStyles, attaching ref on it doesn't attach the ref on the Component.

Using forwardRef to fix this.

Problems it could cause:

  1. clashing names - if someone is passing a prop with the name __$$withStylesRef, it will be NOT be sent to ComposedComponent

@chinmaychaudhary chinmaychaudhary force-pushed the master branch 8 times, most recently from c7b9401 to 19d4c32 Compare April 8, 2020 06:15
@koistya koistya merged commit 24964b4 into kriasoft:main Jul 22, 2021
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