diff --git a/lib/dynamic.js b/lib/dynamic.js index 43d49999d4441..18d9154335b69 100644 --- a/lib/dynamic.js +++ b/lib/dynamic.js @@ -137,6 +137,10 @@ export default function dynamicComponent (p, o) { this.loadBundle(nextProps) } + componentWillUnmount () { + this.mounted = false + } + render () { const { AsyncComponent, asyncElement } = this.state const { LoadingComponent } = this