Skip to content

Commit 34fd4f4

Browse files
authored
Kill ReactLink, LinkedStateMixin, valueLink and checkedLink (#8165)
This should be safe because we've been warning for this. The LinkedStateMixin is technically exposed on React.addons without a warning but presumably you wouldn't be using it without a valueLink or checkedLink. I do this primarily to clear up what the custom onChange listeners are doing. Renamed the final prop type helper to ReactControlledValuePropTypes.
1 parent f538544 commit 34fd4f4

13 files changed

+29
-640
lines changed

src/addons/ReactWithAddons.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
'use strict';
1313

14-
var LinkedStateMixin = require('LinkedStateMixin');
1514
var React = require('React');
1615
var ReactAddonsDOMDependencies = require('ReactAddonsDOMDependencies');
1716
var ReactComponentWithPureRenderMixin =
@@ -25,7 +24,6 @@ var update = require('update');
2524

2625
React.addons = {
2726
CSSTransitionGroup: ReactCSSTransitionGroup,
28-
LinkedStateMixin: LinkedStateMixin,
2927
PureRenderMixin: ReactComponentWithPureRenderMixin,
3028
TransitionGroup: ReactTransitionGroup,
3129

src/addons/link/LinkedStateMixin.js

Lines changed: 0 additions & 38 deletions
This file was deleted.

src/addons/link/ReactLink.js

Lines changed: 0 additions & 73 deletions
This file was deleted.

src/addons/link/__tests__/LinkedStateMixin-test.js

Lines changed: 0 additions & 46 deletions
This file was deleted.

src/addons/link/__tests__/ReactLinkPropTypes-test.js

Lines changed: 0 additions & 159 deletions
This file was deleted.

src/renderers/dom/shared/hooks/ReactDOMUnknownPropertyHook.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ if (__DEV__) {
2626

2727
autoFocus: true,
2828
defaultValue: true,
29-
valueLink: true,
3029
defaultChecked: true,
31-
checkedLink: true,
3230
innerHTML: true,
3331
suppressContentEditableWarning: true,
3432
onFocusIn: true,

0 commit comments

Comments
 (0)