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

update react refs to use callback instead of strings #212

Closed
wants to merge 15 commits into from

Conversation

coderpawz
Copy link

As of React v16 using strings to create refs will no longer work. This is is forward looking change to address future compatibility issues as well as fixing existing deprecation warning thrown by react v15.

For consistency, also moved saveRef from Select.jsx to utils.js

For more info on refs, see https://facebook.github.io/react/docs/refs-and-the-dom.html

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 1b0b5dc on coderpawz:master into cc6f135 on react-component:master.

@HipsterZipster
Copy link

HipsterZipster commented Jul 26, 2017

This is a vital PR that unblocks devs that are using React 16, along with react-component/calendar#282 and react-component/trigger#63

@afc163 can we please get these merged asap?

@yesmeck
Copy link
Member

yesmeck commented Jul 27, 2017

Hello @coderpawz, could you rebase master, then i will merge this.

move saveRef to utils and use anywhere we want to save a ref;
@coderpawz
Copy link
Author

hi @yesmeck, all done, thanks!

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling b0221b5 on coderpawz:master into cc6f135 on react-component:master.

@HipsterZipster
Copy link

@yesmeck @coderpawz It seems this got out of sync with master again after it was rebased last time. Can one of you pls rebase and merge when you have a chance?

@afc163
Copy link
Member

afc163 commented Aug 21, 2017

Need to rebase again..

@HipsterZipster
Copy link

@coderpawz can you please rebase when you have a chance? Need this in

@yesmeck
Copy link
Member

yesmeck commented Oct 30, 2017

1a9e57b

@yesmeck yesmeck closed this Oct 30, 2017
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.

6 participants