Skip to content

Commit

Permalink
Revert "chore: Replace deprecated "componentWillMount" with "componen…
Browse files Browse the repository at this point in the history
…tDidMount" (#7259)" (#7329)

This reverts commit c0b8ce4.
  • Loading branch information
mjackson committed May 11, 2020
1 parent 7d64842 commit 742f035
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/react-router-native/experimental/StackRoute.js
Expand Up @@ -35,7 +35,7 @@ class StackContainer extends Component {
};
}

componentDidMount() {
componentWillMount() {
this.pushToStack("down");
}

Expand Down Expand Up @@ -435,7 +435,7 @@ class StackRootContainer extends Component {
}

class RedirectStack extends Component {
componentDidMount() {
componentWillMount() {
delete rootStoredLocations[this.props.path];
}

Expand Down
2 changes: 1 addition & 1 deletion packages/react-router/modules/__tests__/Route-test.js
Expand Up @@ -238,7 +238,7 @@ describe("A <Route>", () => {
const history = createHistory();
const mount = jest.fn();
class MatchedRoute extends React.Component {
componentDidMount() {
componentWillMount() {
mount();
}

Expand Down

0 comments on commit 742f035

Please sign in to comment.