Skip to content

Commit a8f6a6d

Browse files
committed
Correct mistake made in #281830 for sprockets
1 parent 783221f commit a8f6a6d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/dummy_sprockets/app/assets/javascripts/components/TodoListWithConsoleLog.js.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ TodoListWithConsoleLog = createReactClass({
33
console.log('got initial state');
44
return({mounted: "nope"});
55
},
6-
componentDidMount: function() {
6+
componentWillMount: function() {
77
console.warn('mounted component');
88
this.setState({mounted: 'yep'});
99
},

test/dummy_sprockets/app/assets/javascripts/components/WithSetTimeout.js.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
WithSetTimeout = createReactClass({
2-
componentDidMount: function () {
2+
componentWillMount: function () {
33
setTimeout(function () {}, 1000)
44
clearTimeout(0)
55
},

0 commit comments

Comments
 (0)