From 41bb88ff3e85cfbb4125c9c61512c323cf28a92f Mon Sep 17 00:00:00 2001 From: Roboo Date: Thu, 29 Nov 2018 22:46:20 +0100 Subject: [PATCH 1/2] Changed this.props assignment --- src/extendReactClass.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/extendReactClass.js b/src/extendReactClass.js index f1f41a6..857707a 100644 --- a/src/extendReactClass.js +++ b/src/extendReactClass.js @@ -36,7 +36,12 @@ export default (Component: Object, defaultStyles: Object, options: Object) => { writable: false }); - this.props = props; + const originalProps = this.props; + try { + this.props = props; + } finally { + this.props = originalProps; + } } else { styles = {}; } From d38067602c62a0265c2412b3abc0a5e07fb09803 Mon Sep 17 00:00:00 2001 From: Roboo Date: Fri, 30 Nov 2018 15:42:25 +0100 Subject: [PATCH 2/2] Revert "Changed this.props assignment" This reverts commit 41bb88ff3e85cfbb4125c9c61512c323cf28a92f. --- src/extendReactClass.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/extendReactClass.js b/src/extendReactClass.js index 857707a..f1f41a6 100644 --- a/src/extendReactClass.js +++ b/src/extendReactClass.js @@ -36,12 +36,7 @@ export default (Component: Object, defaultStyles: Object, options: Object) => { writable: false }); - const originalProps = this.props; - try { - this.props = props; - } finally { - this.props = originalProps; - } + this.props = props; } else { styles = {}; }