Skip to content

Commit

Permalink
Mark componentWillMount as unsafe
Browse files Browse the repository at this point in the history
  • Loading branch information
CallumHoward committed Sep 29, 2021
1 parent 6201c58 commit 1dbcf12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function createLoadableComponent(loadFn, options) {
return init();
}

componentWillMount() {
UNSAFE_componentWillMount() {
this._loadModule();
}

Expand Down

0 comments on commit 1dbcf12

Please sign in to comment.