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

Add ref forwarding to Snacks components #277

Closed
wants to merge 10 commits into from

Conversation

mmarcuccio
Copy link
Collaborator

This is a WIP. Adding ref forwarding to Snacks components.

Notes:
Enzyme does not currently support forwarded refs. react-test-renderer does, but you must specify createNodeMock.

Radium does not support wrapping a component which is wrapped by React.forwardRef, so I am applying Radium HOC first before wrapping in React.forwardRef as a workaround.

@mmarcuccio mmarcuccio added the WIP label Oct 23, 2018
@codecov
Copy link

codecov bot commented Oct 23, 2018

Codecov Report

Merging #277 into master will increase coverage by 0.65%.
The diff coverage is 84.61%.

@@            Coverage Diff             @@
##           master     #277      +/-   ##
==========================================
+ Coverage   81.39%   82.04%   +0.65%     
==========================================
  Files          59       57       -2     
  Lines        1107     1086      -21     
  Branches      253      250       -3     
==========================================
- Hits          901      891      -10     
+ Misses        151      140      -11     
  Partials       55       55

@mmarcuccio mmarcuccio force-pushed the mmarcuccio/add-ref-forwarding branch from 30038f9 to fe70539 Compare October 23, 2018 20:58
@mmarcuccio
Copy link
Collaborator Author

This is related to #126.

@mmarcuccio
Copy link
Collaborator Author

This effort will be unblocked now due to switching to Emotion instead of Radium, however, it will be easier to start over due to the large amount of changes in master.

@mmarcuccio mmarcuccio closed this Jun 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant