From c6d54e932563133bf0f8524ae5de723910ed968a Mon Sep 17 00:00:00 2001 From: Matt Lockyer Date: Sun, 29 Mar 2020 16:20:06 -0700 Subject: [PATCH] componentWillMount removed removed `componentWillMount` and moved `this._loadModule();` into `componentDidMount` --- src/index.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/index.js b/src/index.js index 5864dc33..4b3936ed 100644 --- a/src/index.js +++ b/src/index.js @@ -158,12 +158,9 @@ function createLoadableComponent(loadFn, options) { return init(); } - componentWillMount() { - this._loadModule(); - } - componentDidMount() { this._mounted = true; + this._loadModule(); } _loadModule() {