The library for web and native user interfaces.
[React] remove deprecated Component.update()
Summary: Since grepping for `update` and `updateAll` is pretty hard, I had these these functions call through but complain loudly. This noisy call through has been in prod for over a week and I haven't heard any complains, so let's take it out altogether.
CommitSyncScript committed
Jun 6, 2013 at 14:30 UTC
36d8ce8fabdd770cf455b07ee8e7c6880fadc57f
1 file changed
-20
src/core/ReactComponent.js
-20
@@ -480,24 +480,4 @@ var ReactComponent = {
480
481
};
482
483
-function logDeprecated(msg) {
484
- if (__DEV__) {
485
- throw new Error(msg);
486
- } else {
487
- console && console.warn && console.warn(msg);
488
- }
489
-}
490
-
491
-/**
492
- * @deprecated
493
- */
494
-ReactComponent.Mixin.update = function(props) {
495
- logDeprecated('this.update() is deprecated. Use this.setProps()');
496
- this.setProps(props);
497
-};
498
-ReactComponent.Mixin.updateAll = function(props) {
499
- logDeprecated('this.updateAll() is deprecated. Use this.replaceProps()');
500
- this.replaceProps(props);
501
-};
502
-
483
module.exports = ReactComponent;