fix(devtools): unmountApp not behind compile flag

This commit is contained in:
Guillaume Chau 2020-08-22 16:34:18 +02:00
parent 3138f4b42f
commit 6eb7fd8333

View File

@ -251,7 +251,9 @@ export function createAppAPI<HostElement>(
unmount() {
if (isMounted) {
render(null, app._container)
if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
devtoolsUnmountApp(app)
}
} else if (__DEV__) {
warn(`Cannot unmount an app that is not mounted.`)
}