File tree 3 files changed +5
-3
lines changed
test/dummy_webpacker3/app/javascript/components
3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 14
14
"webpack" : " ^2.3.3"
15
15
},
16
16
"dependencies" : {
17
- "react_ujs" : " ^2.6.1 "
17
+ "react_ujs" : " ^2.6.0 "
18
18
}
19
19
}
Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ module.exports = createReactClass({
6
6
console . log ( 'got initial state' ) ;
7
7
return ( { mounted : "nope" } ) ;
8
8
} ,
9
- componentDidMount : function ( ) {
9
+ componentWillMount : function ( ) {
10
+ // This will need to be replaced
11
+ // https://reactjs.org/blog/2018/03/27/update-on-async-rendering.html
10
12
console . warn ( 'mounted component' ) ;
11
13
this . setState ( { mounted : 'yep' } ) ;
12
14
} ,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ var React = require("react")
2
2
var createReactClass = require ( "create-react-class" )
3
3
4
4
module . exports = createReactClass ( {
5
- componentDidMount : function ( ) {
5
+ componentWillMount : function ( ) {
6
6
setTimeout ( function ( ) { } , 1000 )
7
7
clearTimeout ( 0 )
8
8
} ,
You can’t perform that action at this time.
0 commit comments