Skip to content

Commit

Permalink
Remove componentWillMount from LatestPostsEdit (#14637)
Browse files Browse the repository at this point in the history
  • Loading branch information
notnownikki authored Mar 26, 2019
1 parent 2c1fe1a commit 8a20ad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/latest-posts/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class LatestPostsEdit extends Component {
this.toggleDisplayPostDate = this.toggleDisplayPostDate.bind( this );
}

componentWillMount() {
componentDidMount() {
this.isStillMounted = true;
this.fetchRequest = apiFetch( {
path: addQueryArgs( `/wp/v2/categories`, CATEGORIES_LIST_QUERY ),
Expand Down

0 comments on commit 8a20ad3

Please sign in to comment.