Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Remove componentWillMount from LatestPostsEdit
  • Loading branch information
notnownikki committed Mar 26, 2019
commit 710720d77df9ce89202a0aa3515ee4b2b870b1d5
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