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

Added warning for use of ReactLink. #5032

Merged
merged 1 commit into from
Oct 7, 2015
Merged

Conversation

jimfb
Copy link
Contributor

@jimfb jimfb commented Oct 1, 2015

Added warning for use of ReactLink. First step toward fixing #2302

if (props.valueLink !== undefined && !didWarnValueLink) {
warning(
false,
'`.valueLink` on `input` is deprecated; set `.value` and `.onChange` instead.'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: can we not have dots before all of these?

nit: checkedLink too?

nit: might be simpler to put this logic in LinkedValueUtils instead of in each wrapper.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed dots, added checked link.

Didn't want to put the warnings in LinkedValueUtils because I'm expecting that that class will be used in the addons/wrapper for anyone who wants to reuse the valuelink behavior in their apps/components, and they won't want to see the warning.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants