File tree Expand file tree Collapse file tree 3 files changed +5
-3
lines changed
test/dummy_webpacker3/app/javascript/components Expand file tree Collapse file tree 3 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1414 "webpack" : " ^2.3.3"
1515 },
1616 "dependencies" : {
17- "react_ujs" : " ^2.6.1 "
17+ "react_ujs" : " ^2.6.0 "
1818 }
1919}
Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ module.exports = createReactClass({
66 console . log ( 'got initial state' ) ;
77 return ( { mounted : "nope" } ) ;
88 } ,
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
1012 console . warn ( 'mounted component' ) ;
1113 this . setState ( { mounted : 'yep' } ) ;
1214 } ,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ var React = require("react")
22var createReactClass = require ( "create-react-class" )
33
44module . exports = createReactClass ( {
5- componentDidMount : function ( ) {
5+ componentWillMount : function ( ) {
66 setTimeout ( function ( ) { } , 1000 )
77 clearTimeout ( 0 )
88 } ,
You can’t perform that action at this time.
0 commit comments