From 8a20ad349a6d2095e3d0b8634bc2a547d9efa5c4 Mon Sep 17 00:00:00 2001 From: Nicola Heald Date: Tue, 26 Mar 2019 14:50:13 +0000 Subject: [PATCH] Remove componentWillMount from LatestPostsEdit (#14637) --- packages/block-library/src/latest-posts/edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-library/src/latest-posts/edit.js b/packages/block-library/src/latest-posts/edit.js index d9790466b492e4..542c813ec2d329 100644 --- a/packages/block-library/src/latest-posts/edit.js +++ b/packages/block-library/src/latest-posts/edit.js @@ -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 ),