diff --git a/src/HigherComponent.jsx b/src/HigherComponent.jsx index d846746..8cffcdc 100644 --- a/src/HigherComponent.jsx +++ b/src/HigherComponent.jsx @@ -2,7 +2,7 @@ import React from 'react'; import PropTypes from 'prop-types'; export default class HigherComponent extends React.Component { - componentDidMount() { + componentWillMount() { this.props.onEnter(this.props.routerProps); }