fix(devtools): unmountApp not behind compile flag
This commit is contained in:
parent
3138f4b42f
commit
6eb7fd8333
@ -251,7 +251,9 @@ export function createAppAPI<HostElement>(
|
|||||||
unmount() {
|
unmount() {
|
||||||
if (isMounted) {
|
if (isMounted) {
|
||||||
render(null, app._container)
|
render(null, app._container)
|
||||||
devtoolsUnmountApp(app)
|
if (__DEV__ || __FEATURE_PROD_DEVTOOLS__) {
|
||||||
|
devtoolsUnmountApp(app)
|
||||||
|
}
|
||||||
} else if (__DEV__) {
|
} else if (__DEV__) {
|
||||||
warn(`Cannot unmount an app that is not mounted.`)
|
warn(`Cannot unmount an app that is not mounted.`)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user