Skip to content

Commit

Permalink
Activity Log: Refactor QueryRewindBackupStatus away from UNSAFE_ meth…
Browse files Browse the repository at this point in the history
…ods (#61115)
  • Loading branch information
tyxla authored Feb 15, 2022
1 parent f8bccec commit d2f01f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client/components/data/query-rewind-backup-status/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ class QueryRewindBackupStatus extends Component {
siteId: PropTypes.number.isRequired,
};

// @TODO: Please update https://github.com/Automattic/wp-calypso/issues/58453 if you are refactoring away from UNSAFE_* lifecycle methods!
UNSAFE_componentWillMount() {
componentDidMount() {
// We want to run this only once: when the page is loaded. In such case, there is not known download Id.
// If there's a download Id here it means this was mounted during an action requesting progress for a
// specific download Id, so we will do nothing here,since it will be handled by the <Interval /> below.
Expand Down

0 comments on commit d2f01f1

Please sign in to comment.