Skip to content

Commit 41bb88f

Browse files
committed
Changed this.props assignment
1 parent 7a87ee3 commit 41bb88f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/extendReactClass.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,12 @@ export default (Component: Object, defaultStyles: Object, options: Object) => {
3636
writable: false
3737
});
3838

39-
this.props = props;
39+
const originalProps = this.props;
40+
try {
41+
this.props = props;
42+
} finally {
43+
this.props = originalProps;
44+
}
4045
} else {
4146
styles = {};
4247
}

0 commit comments

Comments
 (0)