Commit b47348bd authored by Lukáš Huvar's avatar Lukáš Huvar Committed by Joe Haddad

Change componentWillMount to UNSAFE (#8357)

* Change to unsafe

* Ignore
parent 1765007a
...@@ -170,8 +170,9 @@ function createLoadableComponent (loadFn, options) { ...@@ -170,8 +170,9 @@ function createLoadableComponent (loadFn, options) {
} }
static contextType = LoadableContext static contextType = LoadableContext
// TODO: change it before next major React release
componentWillMount () { // eslint-disable-next-line
UNSAFE_componentWillMount() {
this._mounted = true this._mounted = true
this._loadModule() this._loadModule()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment