Skip to content

Commit bd23570

Browse files
authored
Merge pull request #51 from rollup-umd/dev
fix(lifecycle): replace componentWillMount with componentDidMount or …
2 parents 6cb0a01 + 3b33f3f commit bd23570

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Layout/LayoutRenderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default class LayoutRenderer extends Component {
3030
},
3131
};
3232

33-
componentWillMount() {
33+
componentDidMount() {
3434
const { ga } = this.props;
3535
if (ga.id) {
3636
ReactGA.initialize(ga.id, { debug: process.env.NODE_ENV === 'development' });

src/Wrapper/WrapperRenderer.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ export default class Wrapper extends React.PureComponent {
4949
hocList: [],
5050
};
5151

52-
componentWillMount() {
52+
// eslint-disable-next-line camelcase
53+
UNSAFE_componentWillMount() {
5354
const {
5455
redux,
5556
'react-redux': reactRedux,

0 commit comments

Comments
 (0)