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) {
}
static contextType = LoadableContext
componentWillMount () {
// TODO: change it before next major React release
// eslint-disable-next-line
UNSAFE_componentWillMount() {
this._mounted = true
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